In the description they put 2+2 And the output is 4 but I don't get it am I supposed to only put the numbers or more than that cuz it DOSENT work for me
1/26/2020 7:28:22 AM
sanees56 Answers
New Answer1) if you just do just 2+2 python will just do calculations and will not show the result be ause you didn't ask to show . 2)You have to ask the python to show this result by the help of print and parenthesis means () these brackets 3) Like Example :- print(2+2) Like that python interpreter will know that it have to show that result in output window
Maybe you edit the Comment sanees but in python there are 3 data type integer , string and float you can some operations on them also
We can write that in so many ways Here are some examples π a=2+2 print(a) Another one .... print(2+2) can also give you the answer
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message