10 lines
161 B
Python
10 lines
161 B
Python
a = 'AAAAA'
|
|
b = 'BBBBBB'
|
|
c = 1.1
|
|
string = 'b={nome2} a={nome1} a={nome1} c={nome3:.2f}'
|
|
formato = string.format(
|
|
nome1=a, nome2=b, nome3=c
|
|
)
|
|
|
|
print(formato)
|