How would you code this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How would you code this?

Fill in the blanks to declare a value, add 5 to it and print its value. >>> x = 4 >>> x _ = 5 >>> print _

19th Jul 2019, 1:25 PM
gina broccardo
gina broccardo - avatar
3 Answers
+ 11
x=4 x+=5 print(x) (or in python 2: print x)
19th Jul 2019, 1:34 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
+ 2
thank you!
19th Jul 2019, 1:38 PM
gina broccardo
gina broccardo - avatar
+ 1
ffdrt
21st Jul 2019, 9:45 AM
123456