Computer Science, asked by akanksha448, 5 months ago

Write a program to input names of n students and store them in a tuple. Also input a name from the user and find if this user is present in the tuple or not​

Answers

Answered by maazxmomin123
9

Answer:

values = input("Input some comma seprated numbers : ")

list = values.split(",")

tuple = tuple(list)

print('List : ',list)

print('Tuple : ',tuple)

Answered by jai696
8

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

names = tuple([n for n in input("enter names: ").split()])

name = input("enter name: ")

print("present!") if name in names else print("not present!")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions