if using and in python code example
Example: 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