how do you input if(variable contains something like a number) or is it not possible? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

how do you input if(variable contains something like a number) or is it not possible?

if you can show me in a code

8th Aug 2017, 7:37 PM
HJ🐓TDM
2 Answers
+ 1
in c++
8th Aug 2017, 7:57 PM
HJ🐓TDM
0
umm .. which language? In python: list_1 = [1, 2, 3, 4] a = 2 if a in list_1: print("I found it")
8th Aug 2017, 7:44 PM
Sapphire