Answer the question
In order to leave comments, you need to log in
What is wrong with python program?
what is wrong here (I just started to learn)
print("сбор данных")
name=input ('Имя')
famil=input ('Фамилия')
fath=input ('Отчество')
age=input ('Возраст')
cont=input ('Страна')
city=input ('Город')
plase=input ('Район')
street=input ('Улица')
home=input ('Дом')
print("сбор...")
print("кеширвание...")
print("сохранение...")
print("шифрование...")
print("готово.")
permission=input('хотите прочесть файл y/n')
if permission=y:
print(name)
print(famil)
print(fath)
print(age)
print(cont)
print(city)
print(plase)
print(street)
print(home)
else:
print("not permission")
input('press e and enter to exit')
Answer the question
In order to leave comments, you need to log in
You have:
if permission=y:
but it is necessary:
if permission=='y':
In the condition - double "equals", in the assignment - single.
Should be:
if permission == “y”:
In general, I recommend reading the book "Learning Python" by Mark Lutz. Everything is very well dismantled, even chewed. True, the book is big.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question