Post

Coding Computing Coach
Coding Computing Coach@CodingComputing·
@PythonPr Answer: 125 Solution: a looks like a number, but it's not! The quotes around it make it a string - a sequence of characters. But, int(a) converts it from string to an integer, so b is now the int 123. You can do arithmetic operations on it. Printing b+2 prints 123+2, ie, 125.
English
0
1
4
389
Gopuff
Gopuff@gopuff·
Our delivery comes with a genius. Go learns what you like, builds your cart in seconds, and gets it all to your door in as fast as 15 minutes.
English
12
38
807
7.1M
Execuspeak
Execuspeak@Execuspeak·
@PythonPr This output looks like python commands.
GIF
English
0
0
0
162
akwasieffah
akwasieffah@akwasieffah_·
@PythonPr 125 b turns a into an integer Then we have 123 + 2 = 125
English
0
0
0
158
分享