Faculty of Engineering & Technology Electrical & Computer Engineering Department

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Faculty of Engineering & Technology

Electrical & Computer Engineering Department


LINUX LABORATORY
ENCS313

Todo#3

Prepared by:
Asaad Halayqa 1172102

Instructor: Dr. Mohammad Jubran


Assistant: Eng. Aseel Awwad

Section: 1
#Asaad Halayqa
#1172102
lines = []
with open("CarRentalInfo.txt") as fo:
for line in fo:
lines.append(line)

#print(lines)
l = []
for i in lines:
i = i.rstrip(';')
l.append(i)

#print(i)

i = input("Do you want to inquire about a person or a car?\n"


"(To inquire about a person, enter 1, to inquire about a car,
enter 2)\n")
if i == '1':
person = input("Please enter the name of the required person:\n ")

elif i =='2':
carCL = input("Please enter car CL:\n")

else:
print("You have entered wrong number!!\n")

You might also like