[Tutor] error generating
Ming
ming at pgp.cool
Fri Feb 19 06:59:09 EST 2021
On Fri, Feb 19, 2021 at 08:20:52AM +0530, prashant sahu wrote:
> [...]
> choice= int(input("Choice: "))
> if choice==4:
> term= input("\nWhat term do you want me to delete___:")
> if term in geek:
> del geek[term]
> print(term,"\nis no more in ur dictionary")
> else:
> print("chill buddy,,, this ",term," is already out of my
> dictionary")
> input()
Hi, there is an obvious indentation error in your code: the code block
following 'if' needs to be indented.
Modify as follows:
...
choice= int(input("Choice: "))
if choice==4:
term= input("\nWhat term do you want me to delete___:")
if term in geek:
...
--
OpenPGP fingerprint: 3C47 5977 4819 267E DD64 C7E4 6332 5675 A739 C74E
More information about the Tutor
mailing list