Professional Documents
Culture Documents
Goal
• Get started with Python
• Get comfortable with Jupyter Notebook
• Understand input and print
• Learn string methods: capitlize, lower, isdecimal, replace
print("Hello, World!")
Hello, World!
import this
Hey 10 2.2
s = input()
hello
s
{"type":"string"}
print(s)
name
s = "rune"
t = s.capitalize()
print(t)
Rune
"Rune".upper()
{"type":"string"}
"Rune".lower()
{"type":"string"}
"223".isdecimal()
True
"Rune".isdecimal()
False
name = "Rune"
name.replace('R', 'S')
{"type":"string"}