+ 3
How to use variable as integer?
5 Antworten
+ 3
A variable can't start with integer. But you can do it like this
_1 ="hi"
print(_1)
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2428/
+ 5
convert that variable to integer :
int(variable)
+ 3
Variable names doesnt start with numeric value. It is one of the standard in coding.
use underscore if you want numeric variable.
_1 = “hi”
print(_1)
+ 2
Type cast it 😇