OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Why am I getting '' IndentationError: unexpected indent "? [duplicate]

  • Thread starter Thread starter parsa.s
  • Start date Start date
P

parsa.s

Guest
Code:
number = input('left or right?')
if number == 'left'
    number1 = input('swim or wait?') 
    if number1 == 'wait': 
        number2 = input('which door? blue or red or yellow?')
        if number2 == 'yellow':
           print('you win')
        else:
            print('game over...' ,)
    else:
        print('game over...')
else:
    print('game over...')

your text IndentationError : unexpected indent

I got this problem, what should I do? To solve this problem؟
<pre><code>number = input('left or right?')
if number == 'left'
number1 = input('swim or wait?')
if number1 == 'wait':
number2 = input('which door? blue or red or yellow?')
if number2 == 'yellow':
print('you win')
else:
print('game over...' ,)
else:
print('game over...')
else:
print('game over...')





</code></pre>
<p><code>your text</code> IndentationError : unexpected indent</p>
<p>I got this problem, what should I do? To solve this problem؟</p>
 

Latest posts

Top