Computer Science, asked by amolkumarsingh1947, 5 hours ago

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 Amido23
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