0

What is str refers for

19th Aug 2018, 12:12 PM
Tirumala Vinay
Tirumala Vinay - avatar
9 Answers
+ 4
It can be used to convert a value to a string, like this: x = 3 y = str(x) print(y + '4') y is a string with value'3'.
19th Aug 2018, 12:25 PM
Paul
Paul - avatar
+ 3
Everybody will try to help if you post your code and tell us where you have a problem.
19th Aug 2018, 12:29 PM
Paul
Paul - avatar
+ 2
I can't help if I don't see the code.
19th Aug 2018, 12:33 PM
Paul
Paul - avatar
+ 1
Then you used an if statement or a loop and didn't indent the lines after the line that ended with a :
19th Aug 2018, 1:04 PM
Paul
Paul - avatar
0
ok
19th Aug 2018, 12:27 PM
Tirumala Vinay
Tirumala Vinay - avatar
0
could you help me making simple calculator
19th Aug 2018, 12:27 PM
Tirumala Vinay
Tirumala Vinay - avatar
0
I was stuck at the subtraction code I entered everything but the result isn't displaying
19th Aug 2018, 12:31 PM
Tirumala Vinay
Tirumala Vinay - avatar
0
the error was "expected a intended block"
19th Aug 2018, 1:01 PM
Tirumala Vinay
Tirumala Vinay - avatar
0
sry it is indented
19th Aug 2018, 1:01 PM
Tirumala Vinay
Tirumala Vinay - avatar