Listing 04-02: New or old car, depending on age

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

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