0

What does the f(format) do in print function?

exp: print(f"hello guys")

25th Feb 2020, 9:21 PM
OJJOJ
OJJOJ - avatar
4 ответов
25th Feb 2020, 9:25 PM
Mihai Apostol
Mihai Apostol - avatar
+ 1
As I know they implemented this because is simple, readable, versatile and fast at the same time.
25th Feb 2020, 9:36 PM
Mihai Apostol
Mihai Apostol - avatar
0
Thanks for that but why dont we just use a comma or a plus ? print("hello",name)
25th Feb 2020, 9:29 PM
OJJOJ
OJJOJ - avatar