Python Forum
SyntaxError when trying to execute code on Windows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SyntaxError when trying to execute code on Windows
#1
I'm a brand new baby when it comes to programming. just want to run simple hello world doc from a different directory in Windows native Dos

Error:
SyntaxError: unexpected character after line continuation character >>> Users\fredt\OneDrive\Documents\ hello.py File "<stdin>", line 1 Users\fredt\OneDrive\Documents\hello.py
^

its simple I know I'm starting to feel like if I were to catch fire I'd burn really slowly..PLZ HELP
Reply


Messages In This Thread
SyntaxError when trying to execute code on Windows - by Fred0n - Apr-25-2020, 03:26 AM
RE: Basic Basic Basic - by ndc85430 - Apr-25-2020, 03:55 AM
RE: Basic Basic Basic - by buran - Apr-25-2020, 04:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error on import: SyntaxError: source code string cannot contain null bytes kirkwilliams2049 7 6,843 Aug-03-2023, 06:00 PM
Last Post: Gribouillis
  Can a program execute code in iPython shell and get result? deanhystad 3 1,752 Jun-17-2022, 03:45 AM
Last Post: Larz60+
  How to Translate a python code written in Mac-OS to Windows? alexanderDennisEnviro500 2 2,717 Jul-31-2021, 08:36 AM
Last Post: Gribouillis
Sad SyntaxError: from simple python example file from mind-monitor code (muse 2) warmcupoftea 4 2,845 Jul-16-2021, 02:51 PM
Last Post: warmcupoftea
  Using a .bat file to execute simple anaconda commands in Windows 10 gacg1 0 4,694 Nov-30-2020, 03:24 PM
Last Post: gacg1
  "SyntaxError: invalid syntax" running code in Doing Math With Python b saucerdesigner 2 2,747 Nov-03-2020, 04:23 PM
Last Post: saucerdesigner
  [split] SyntaxError when trying to execute code on Windows nehaya 2 2,009 Aug-04-2020, 11:18 AM
Last Post: nehaya
  How to execute code WHILE a function runs t4keheart 4 2,684 Jan-27-2020, 01:47 PM
Last Post: t4keheart
  How to execute Python code leemao 2 2,164 Dec-21-2019, 02:35 PM
Last Post: leemao
  Help to reduce time to execute the code prakash52kar 1 2,239 Oct-14-2019, 10:56 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020