Closed sts10 closed 1 year ago
Having some trouble converting strings that are numbers into integers or numbers.
In the playground:
a_number = int("110") print 'a number is {a_number}'
prints a number is 0
a number is 0
I also tried number():
number()
a_number = number("110") print 'a number is {a_number}'
prints a number is 1
a number is 1
Am I doing something wrong?
This should be fixed. Thanks for reporting this.
Having some trouble converting strings that are numbers into integers or numbers.
In the playground:
prints
a number is 0
I also tried
number()
:prints
a number is 1
Am I doing something wrong?