mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-12 21:01:48 +08:00
Merge pull request #733 from sjanwari/patch-2
Fix format order in sentence construction
This commit is contained in:
commit
9522616ff6
@ -349,7 +349,7 @@ last_name = 'Yetayeh'
|
||||
age = 250
|
||||
job = 'teacher'
|
||||
country = 'Finland'
|
||||
sentence = 'I am {} {}. I am a {}. I am {} years old. I live in {}.'.format(first_name, last_name, age, job, country)
|
||||
sentence = 'I am {} {}. I am a {}. I am {} years old. I live in {}.'.format(first_name, last_name, job, age, country)
|
||||
print(sentence) # I am Asabeneh Yetayeh. I am 250 years old. I am a teacher. I live in Finland.
|
||||
|
||||
radius = 10
|
||||
|
||||
Loading…
Reference in New Issue
Block a user