All problems
EasyPython Basics
Cast a string to int
Convert a string number into an int and add 10 to it.
- #casting
- #int
Sample input
s = "42"
Sample output
52
input-cast.py
Output
Press "Run code" to execute.
Loading…
Convert a string number into an int and add 10 to it.
s = "42"
52
Press "Run code" to execute.