age = int (input("Enter your age please: \n"))
license = input('Do you have a license? Type (Yes) or (No) \n')
if age >= 18 and license.lower() == 'yes':
    print('You can drive!')
elif age < 18 or license.lower() == 'no':
    print("Sorry, you can't drive")
else:
    print(f'Sorry, your entery of [ {license} ] is not understood')

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: