Aug-31-2017, 01:39 PM
(Aug-31-2017, 12:29 PM)Zei Wrote: but what's the .format for in line 16?It's string formatting PyFormat.
With Python 3.6 did come the newest one
f-string
.>>> word_list = ['all', 'act', 'eau'] >>> print(f"Word that begins with vowels are {word_list}") Word that begins with vowels are ['all', 'act', 'eau']