(May-11-2020, 04:53 PM)dcsethia Wrote: tried just with these 2 lines - not workingnot working isn't helpful. Do you get a traceback? Do you use python3 as already advised? what version of python3 - f-strings were introduced in 3.6....
Python 3.7.7 (default, Mar 10 2020, 17:25:08) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> color = input("enter a color : ") enter a color : red >>> print(f"roses are {color}") roses are red
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs