LearningPy/main.py

9 lines
153 B
Python

#String tests
a = " !{} {}! "
b = " !{1} {0}! "
c = "hello"
d = "world"
print(a.format(c, d))
print(b.format(c, d))
print(b.format(d, c, a))