Python Forum
Can't figure out the syntax error, relatively simple code
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't figure out the syntax error, relatively simple code
#1
Hi, I started learning python a few days ago and decided to code something that happened yesterday, I wanted to print a quote and then input a question to answer, however the console rejects it and only allows me to do it if I make sure the first line is the input. My inputs are shown below:

#testing inputs and strings
print("Realf:'Shar, what ride you wanna go on after we eat?'"
first = (input("Shar-Shamar Steward, RB is asking what ride you would like to go on?"))
print("\n Maho:'Ite. You man lets go queue up for", first, "'")
import time
time.sleep(2)
print("\n\ntwo hours later...", end='')
time.sleep(1.5)
print("\n\n...Hydajet'FAM...FAAMMMM we've been here for two hours cos of this retard when we could've gone on saw how many times for **** sake")


input("\n\n\npress enter key to exit")
Thank you so much for any help
Reply


Messages In This Thread
Can't figure out the syntax error, relatively simple code - by maho686868 - Jul-07-2018, 11:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple code not working properly tmv 2 558 Feb-28-2025, 09:27 PM
Last Post: deanhystad
  POST Syntax error amplay 0 670 Aug-07-2024, 02:43 PM
Last Post: amplay
  is this really a syntax error? Skaperen 4 1,681 May-25-2024, 07:31 AM
Last Post: snippsat
  World Clock syntax error OscarBoots 1 1,142 May-03-2024, 05:20 AM
Last Post: snippsat
  Help with simple code JacobSkinner 1 1,391 Mar-18-2024, 08:08 PM
Last Post: deanhystad
  Syntax error for "root = Tk()" dlwaddel 15 6,802 Jan-29-2024, 12:07 AM
Last Post: dlwaddel
Photo SYNTAX ERROR Yannko 3 1,364 Jan-19-2024, 01:20 PM
Last Post: rob101
  I have a code which is very simple but still I cannot detect what's wrong with it max22 1 1,302 Nov-07-2023, 04:32 PM
Last Post: snippsat
  Syntax error while executing the Python code in Linux DivAsh 8 5,259 Jul-19-2023, 06:27 PM
Last Post: Lahearle
  Code is returning the incorrect values. syntax error 007sonic 6 3,079 Jun-19-2023, 03:35 AM
Last Post: 007sonic

Forum Jump:

User Panel Messages

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