#!/usr/bin/env python # coding: utf-8 # # Write a program in python check the person age then show him the price of train ticket that fit his age in dollars: # # children until 18 years ticket = 2 # # old people bigger than or equal 60 years ticket = 5 # # young people from 18 - 59 year ticket = 10 # In[12]: age = int(input("How old are you? ")) # In[13]: if age < 18: print("train_ticket = 2 $") elif age>= 18: print("train_ticket = 10 $") elif age < 60: print("train_ticket = 10 $") else: print("train_ticket = 5 $" ) # In[ ]: