Nov-20-2019, 07:34 AM
technically, it's correct, but useless:
Output:lt2a/forums /home/forums 5> cat foo.py
a=1
b=2
c=3
d=f'hello {world{}}'
lt2a/forums /home/forums 6> python3.6 foo.py
File "<fstring>", line 1
(world{})
^
SyntaxError: invalid syntax
lt2a/forums /home/forums 7>
in a big script with lots of similar messages, you won't know which line the error in the f-string is at. did they get this fixed in 3.6.9 or 3.7 or 3.8?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.