Run ❯
Get your
own Python
server
Result Size:
625 x 565
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Go to Spaces
Ctrl+Alt+P
#named indexes: txt1 = "My name is {fname}, I'm {age}".format(fname = "John", age = 36) #numbered indexes: txt2 = "My name is {0}, I'm {1}".format("John",36) #empty placeholders: txt3 = "My name is {}, I'm {}".format("John",36) print(txt1) print(txt2) print(txt3)
My name is John, I'm 36
My name is John, I'm 36
My name is John, I'm 36