Is it possible? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 10

Is it possible?

Can i make a condition in which it checks if the given var(data) is more than 18 and less than 24 in a single condition and returns the statement (eligible,you can fill the form)? How? https://code.sololearn.com/WGuvb13tqrCi/?ref=app

18th Sep 2020, 2:51 PM
ā€ŽAshwin Maurya
ā€ŽAshwin Maurya - avatar
3 Respostas
+ 7
by using AND operator (&&) age > 18 && age < 24
18th Sep 2020, 2:53 PM
Gordon
Gordon - avatar
+ 3
Gordon It worked , I totally missed this point ,while working on it , though i have just learned itšŸ˜‚šŸ˜‚ Thanks
18th Sep 2020, 2:56 PM
ā€ŽAshwin Maurya
ā€ŽAshwin Maurya - avatar
+ 3
Yes
12th Oct 2020, 6:06 AM
Rajesh
Rajesh - avatar