10 lines
239 B
Python
10 lines
239 B
Python
# Example 1
|
|
|
|
Age = 24;
|
|
|
|
if Age >=18:
|
|
|
|
print('You are an adult')
|
|
|
|
|
|
|
|
# Example 2
|
|
|
|
has_license = False
|
|
|
|
if has_license == True: # False == True-> Flase
|
|
|
|
print('You can drive')
|
|
|
|
print('False condition, skip the if statement') |