LearningPy/main.py

9 lines
153 B
Python
Raw Normal View History

2022-11-30 16:59:34 +00:00
#String tests
2022-11-30 17:19:49 +00:00
a = " !{} {}! "
b = " !{1} {0}! "
c = "hello"
d = "world"
print(a.format(c, d))
print(b.format(c, d))
print(b.format(d, c, a))