Listing 04-05: New or old car, depending on age with it

##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 04\04.05 - New or old car, depending on age with it.py
# Description: New or old car, depending on age with it
##############################################################################

age = int(input("Enter the age of your car: "))
if age <= 3:
    print("Your car is new")
else:
    print("Your car is old")
Click here to download the file