Oct-30-2021, 01:29 PM
Hi,
I'm brand new to Python and don't understand what I've done wrong here, could someone please enlighten me?
_______________________________________________________________________________________
Here's my code:
Here's my error:
Thanks for your time.
I'm brand new to Python and don't understand what I've done wrong here, could someone please enlighten me?
_______________________________________________________________________________________
Here's my code:
question_know = "How many sides does a square have?" question = "How many sides does a circle have?" if question == question_know: print("4") else: print(f"I don't know, why not try asking {question_know}")_______________________________________________________________________________________
Here's my error:
Error:File "/Users/callumbennett/Dropbox/Mac/Documents/P Projects/HelloWorld/Playground.py", line 8
print(f"I don't know, why not try asking {question_know}")
^
SyntaxError: invalid syntax
[Finished in 2.348s]
_______________________________________________________________________________________Thanks for your time.