Python Forum
Need help with Keywords in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with Keywords in Python
#1
Hello I'm looking for someone to help me with Keywords in Python the coursework is GCSE and is due in tomorrow

key_words = ("Screen", "Power", "Wifi") user_input = input("What is your problem today? ") user_words = user_input.split() for word in user_words: if "Power" in key_words: print("Please #### ######### for word in key_words: if "Screen" in key_words: print("Hello")

Moderator sparkz_alot:
Moved thread to homework
Reply
#2
Use the python code tags, please!
What do you want ti achieve?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply
#3
I need it to answer three of them like a mobile phone store.
Reply
#4
Show us what you've got so far. We're not going to write it for you :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Repeat keywords at end of every line knob 4 2,281 Sep-15-2020, 06:38 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020