Hello! ultra noobie with all things programming and I am currently registered in an online python course. During the tutorials I got stuck when I was prompted to enter a line:
It is supposed to be an example of the various python functions you can use but when I use this or
This happens in both the editor (Visual Studio Code) and the shell/terminal on my computer. Please help as I am eager to learn but feel I can't even get started!
name="BRADY H".lower()This happens in only Visual Studio Code
It is supposed to be an example of the various python functions you can use but when I use this or
.upper()
or .replace()
or any of the other tutorial functions I keep getting the errorError:bash:syntax error near unexpected token `('
Also I have tried:my_book="My favorite book is 'Tod Sawyer',".replace('Tod', 'Tom') print(my_book)but get the same error...
This happens in both the editor (Visual Studio Code) and the shell/terminal on my computer. Please help as I am eager to learn but feel I can't even get started!