Question

USE IDLE PLATFORM FOR PYTHON PLEASE Write a Python program that creates a list that contains...

USE IDLE PLATFORM FOR PYTHON PLEASE

Write a Python program that creates a list that contains players of your favorite teams. The program then should ask the user to enter the name of a player. If the player is in your list, display a message indicating that the player is in the team. Otherwise, the program should display a message stating that the player isn't on the team.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

data=["Virat","Rohit","Sachin","Sehwag","Gauti"]

name=input("Enter player name: ")

if name in data:

  print(name," is in the team")

else:

  print(name," isn't on the team")

  

Note : Please comment below if you have concerns. I am here to help you

If you like my answer please rate and help me it is very Imp for me

Add a comment
Know the answer?
Add Answer to:
USE IDLE PLATFORM FOR PYTHON PLEASE Write a Python program that creates a list that contains...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT