+ 1
Why are F-Strings not working on sololearn? (Python)
f"text" output: 'text' tier = "Papagei" zahl = 1 f"{zahl} {tier} ist mausetot!" output: '1 Papagei ist mausetot!' i learnt it from Dr. Rene Brunner
9 odpowiedzi
+ 2
Nico Zaglmayr Look, I understand but i think Sololearn doesn't work like a Jupyter notebook. In Jupyter notebook the print is like if is implied.
https://stackoverflow.com/questions/58895060/in-JUMP_LINK__&&__python__&&__JUMP_LINK-what-is-it-called-when-you-see-the-output-of-a-variable-without-printi
+ 1
they do, what code did you try?
+ 1
Noting will print if you don't print it...
+ 1
Nico Zaglmayr , if I'm not crazy, string will work withouth print if you use direct in console. You need to use print in Sololearn.
+ 1
https://ibb.co/3cZ01Jz
i made a screenshot of my jupiter notebook
+ 1
ok i understand:) i thought thats the new short way of print.
thank you, have a nice day
0
no i mean without print
https://code.sololearn.com/cW0Vd0RYh99H
0
كييكييحطحي