a = 1
b = 2
c = 3
d = 'sss'
print('D = %s, C = %d, B = %d, A = %d' % d % c % b % a)
Traceback (most recent call last):
File "<string>", line 6, in <module>
TypeError: not enough arguments for format string
>
import time
def main() -> None:
a = 1
b = 2
c = 3
d = 4
e = 5
some_string = f'{a} {b} {c} {d} {e}'
print(some_string)
if __name__ == '__main__':
main()
time.sleep(10)
def main_2() -> None:
a = 1
b = 2
c = 3
d = 4
e = 5
some_string = f'{a} {b} {c} {d} {e}'
print(a, b, c, d, e)