Write the corresponding Python assignment statements : Check whether value of variable weight is equal to string literal 20
a) weight=20
b) weight="20"
c) weight=="20"
d) weight==20
Answers
Answered by
0
Answer:
c
Explanation:
to compare we use the == sign
to assign we use = sign
"" must always be used to declare a string, without it python thinks its an integer.
Similar questions
Geography,
3 hours ago
Hindi,
3 hours ago
Social Sciences,
3 hours ago
Math,
5 hours ago
Social Sciences,
8 months ago
Math,
8 months ago