Aug-25-2019, 07:09 PM
I used VS Code.
The error
pasting it into the command line worked ok
The error
Error:SyntaxError: multiple statements found while compiling a single statement
is because you tried to paste all the code into the python idle shell and it didn't like it.pasting it into the command line worked ok
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> first_name = "ada" >>> last_name = "lovelace" >>> full_name = f"{first_name} {last_name}" >>> print(f"Hello, {full_name.title()}!") Hello, Ada Lovelace! >>>