Answer the question
In order to leave comments, you need to log in
How to remove errors in the code?
here is the code itself, it seems to say there are no errors, but when you start everything is ok. But then there are a lot of errors
#import time
print("Hi!")
print("Welcome to GeekTech IT School!")
test1 = input("Do you want to enroll in a course?")
if test1 == "no":
test3 = input ("Have you ever been given chapalach at the speed of light?")
if test3 == "no":
print("Alakikaji")
if test1 == "yes":
print("Good")
if test1 == "yes":
print ("Which course are you taking?")
yes = input("We have courses in Android/IOS Development, UX/UI Design,
print("OK. Trial class on Wednesday")
k1 = input("Are you booked for trial class?")
if yes == "IOS":
print("OK. Trial lesson on Wednesday")
k2 = input(" would you like to sign up for a trial lesson?")
if yes == "UX/UI":
print("Okay. There's a trial lesson on Thursday")
k3 = input("Are you signing up for a trial lesson?")
if yes == "frontend" :
print("Okay. There's a trial lesson on Saturday")
k4 = input("Do you want to sign up for a trial lesson?")
if yes == "backend":
print("Okay. There's a trial lesson on Saturday")
k5 = input( "sign you up for a trial lesson?")
if k1 == "yes":
print("OK, then come at 15:00")
if k2 == "yes":
print("ok, then come at 16:00")
if k3 == "yes":
print("ok, then come at 14:00")
if k4 == "yes":
print("OK, then come at 18:00")
if k5 == "yes":
print("OK, then come at 18:00")
else:
print("Invalid operation sign!")
Answer the question
In order to leave comments, you need to log in
Rewrite the whole code, there is no logic in your code.
For example, line 5, if the answer to the question "Do you want to enroll in courses?" == "no" what should happen? I did not understand and the python did not understand. Read what is written and in your head follow the logic of what is written, you will see all the errors.
It feels like you took the code and change it without understanding it.
How it should look
print("Привет!")
print("Тебя приветствует IT школа GeekTech!")
test1 = input("Ты хочешь записаться на курсы?")
if test1 == "да":
print("Хорошо")
elif test1 == "нет":
print("Гудбай")
else:
print('Принимаю только да или нет')
test3 = input("Тебе когда нибудь давали чапалах со скоростью света?")
if test3 == "нет":
print('Алакикаджи')
else:
print('Как скажешь')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question