Python:Convert a String to a Number

From Progzoo
Jump to: navigation, search

You can use the functions int and float to convert to integers or floating point numbers.

The value "1234" is a string, you need to treat it as a number - to add 1, giving 1235.

[Font] [Default] [Show] [Resize] [History] [Profile]