TypeError: Keys () nimmt keine Argumente ein (1 gegeben)Python

Python-Programme
Anonymous
 TypeError: Keys () nimmt keine Argumente ein (1 gegeben)

Post by Anonymous »

When I hit "5", my program doesn't give me back all the keys in a form of a list (as expected) but an error occurs instead:

TypeError: keys() takes no arguments (1 given)

Why is that?

Code: Select all

elif choice == "5":
print("\nOto wszystkie terminy znajdujace sie w slowniku:")
for i in dictionary:
print(dictionary.keys(i))

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post