samedi 25 août 2018

using else in basic program getting error: unindent does not match any outer indentation level

file=open('csquetionseasy.txt','r')

print(file.read(432))

answersinputeasy=input('enter the letter responding to the correct answer for all 3 questions e.g. BBB')

if answersinputeasy==('BAA'):

print('you got 3/3!')

else: if answersinputeasy==('BAB'):

             print('2/3!')

            else:

                if answersinputeasy==('BBB'):

                 print('1/3!')

              else:

                  if answersinputeasy==('ABB'):
                      print('0/3!')
                  else:

                      if answersinputeasy==('AAB'):

                            print('1/3!')

                          else:
                              if answersinputeasy==('AAA'):

                                print('2/3!')

                            else:

                                if answersinputeasy==('ABA'):

                                  print('1/3!')

Aucun commentaire:

Enregistrer un commentaire