Answers for "if using and in python"

0

if using and in python

#if using or / and
name='ron'
town='Tel Aviv'
age=25
if age>18 and town=='Tel Aviv':
  print(f'Name is {name} Age {age} and town is {town}\nusing and')
else:
  print('other')
  
#answer is: Name is Ron Age 25 and town is Tel Aviv
using and
Posted by: Guest on April-03-2021

Browse Popular Code Answers by Language