Python Forum
an input error or elif error , how can i fix this
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
an input error or elif error , how can i fix this
#2
The program is probably waiting for your choice. Replace line 1 with
cours = float(input("Enter your choice (1 2 ...): "))
Also note that python can print multiline strings defined by triple quotes
    print('''\
ASSONANCE n.f.   Répétition d’une même voyelle dans un groupe de mots / Allitérations et assonances -> Les détecter et commenter
ALLITERATION n.f.    Répétition de une ou de plusieurs consonnes dans un groupe de mots / Allitérations et assonances -> Les détecter et commenter
ANAPHORE n.f.    Répétition d'une même expression ou d'un même mot en début de phrase ou de vers
ANTITHESE n.f.   2 termes de sens opposés dans une même phrase''')
Reply


Messages In This Thread
RE: an input error or elif error , how can i fix this - by Gribouillis - Dec-15-2018, 09:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyscript index error while calling input from html form pyscript_dude 2 938 May-21-2023, 08:17 AM
Last Post: snippsat
  Error in Using INPUT statement gunwaba 1 2,015 Jul-03-2022, 10:22 PM
Last Post: deanhystad
Star I'm getting syntax error while using input function in def. yecktmpmbyrv 1 1,932 Oct-06-2021, 09:39 AM
Last Post: menator01
  pandas.errors.ParserError: Error tokenizing data. C error: Expected 9 fields in line Anldra12 9 15,083 Jun-15-2021, 08:16 AM
Last Post: Anldra12
  Pyspark SQL Error - mismatched input 'FROM' expecting <EOF> Ariean 3 47,826 Nov-20-2020, 03:49 PM
Last Post: Ariean
  cx_Oracle.DatabaseError: Error while trying to retrieve text from error ORA-01804 rajeshparadker 0 8,593 Nov-12-2020, 07:34 PM
Last Post: rajeshparadker
  Coding error- Not sure where I have put error markers against the code that is wrong Username9 1 1,691 Sep-28-2020, 07:57 AM
Last Post: buran
  EOF error while taking input ShishirModi 1 2,532 Sep-27-2020, 11:28 AM
Last Post: jefsummers
  Line charts error "'isnan' not supported for the input types," issac_n 1 2,368 Jul-22-2020, 04:34 PM
Last Post: issac_n
  Type Error or Value Error? spalisetty06 3 2,338 Jul-21-2020, 04:56 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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