Hello fellow programmers, Im quite new to python and im trying to create a multi question quiz. I will paste my code below and it keeps saying I have syntax errors everywhere but I try and fix it and it simply hops to the next line. Could someone please tell me what I am doing wrong?

#This is a multi-question quiz intended to furthur my python skills.
print('Welcome everybody to my quiz.')
print
begin = input()(
print('Would you like to begin?: ')

if begin == ('yes')
    print('A- Very')
    print('B- Extremely')
    print 'C- Off the charts')
    print 
    q1 = input()
print('How awesome am I?')

Recommended Answers

All 7 Replies

I would truly appreciate any feedback.

The main things that jump out at me are:

  • line 4: there is an extra '(' at the end of the line. This was probably a typing error.
  • line 7: you dropped the colon at the end of the line

Thank you. that fixed it. Im a completely newbie at this because as soon as I fixed that error I did something else wrong because now it says that the letters to my answers aren't defined.

Okay sorry i keep asking for help but for some reason it says that i cant assign a letter, "c" as the correct answer to a question. It says can't assign to operator

#This is a multi-question quiz intended to furthur my python skills.
print('Welcome everybody to my quiz.')
print
print('Would you like to begin?: ')
begin = input()

if begin == ('yes'):
    answer =C or answer =c
print('How awesome am I?')  
print('A- Very')
print('B- Extremely')
print('C- Off the charts')
print 
answer = input()
if guess == answer:
    break

if guess == answer:
    print('Good job! You know me very well!')
if guess != answer:
    print('Try thinking about my awesomeness level again.')

On line 8 is where the issue is occuring. Also what do you think of this code?

I changed your code a little bit
`

this is a multi question quiz intended to
further my python skills.

print('welcome everybody to my quiz')
print
print('Would you like to begin?: ')
begin = input()

if begin == ('yes'):

answer=input('How awesome am I?')  
print('A- Very')
print('B- Extremely')
print('C- Off the charts')
if answer.lower()=='c': 
    print('Good job! You know me very well!')
else:
    print('Try thinking about my awesomeness level again.')

`

At your level of experience you need to write your code a few lines at a time and run it. Look at the error messages if they come up and correct the code.

Thank you for the help.Also using code academy to further my knowledge.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.