How to do python calculations | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to do python calculations

When I add (+), it just adds both numbers, like if I do 9+7, it gives my 97?

29th Oct 2019, 10:02 PM
AquaCoder
AquaCoder - avatar
2 Answers
+ 9
That's for strings: "9"+"7"="97" And for numbers: 9+7=16
29th Oct 2019, 10:07 PM
Qasem
0
You should start learning first about data types and how to implement/ use them
30th Oct 2019, 12:19 AM
spyrax10
spyrax10 - avatar