0

Fill the blanks to declare a variable add 5 to it and print its value ļ¼ˆwhat is wrong here ļ¼‰

>>> x =4 >>>x +=5 >>>print ļ¼ˆ9ļ¼‰

29th Mar 2020, 3:59 PM
Fabrice njodzeven
Fabrice njodzeven - avatar
2 Answers
+ 1
Many mistakes: 1. indeltation error on line 1 due to use of extra space before "x = 4" 2. You have used "FULLWIDTH LEFT/RIGHT PARENTHESIS --> ļ¼ˆļ¼‰" instead of normal parentheses --> (). 3. If you are printing value from a variable, than why you have printed 9 directly on line 3. The correct code would be: x = 4 x += 5 print(x)
29th Mar 2020, 4:11 PM
Bibek Oli
Bibek Oli - avatar
29th Mar 2020, 5:03 PM
Piyush Srivastava
Piyush Srivastava - avatar