You are on page 1of 3

PLATA, Alyssa Sydney L.

FE-1201

LABORATORY #1: Personal Information


A. Displays information

def personal_information():

name, age = "Alyssa Sydney L. Plata", 18

address = "Bigain South, San Jose, Batangas"

city = "Batangas city"

zip = "4227"

number = "09338208438"

major = "BS Food Engineering

print("Name: {}\nAge: {}\nAddress: {}\nCity: {}\nZip: {}\nTelephone number:


{}\nCollege major: {}".format(name, age, address, city, zip, number, major))

personal_information()
PLATA, Alyssa Sydney L.
FE-1201

ALTERNATIVE CODE FOR “A”

name = ( "Alyssa Sydney L. Plata" )

age = ( "18" )

address = ( "Bigain South, San Jose, Batangas" )

city = ( "Batangas City" )

zip = ( "4227" )

telephoneNumber = ( "09338208438" )

collegeMajor = ( "BS Food Engineering" )

print( name, age, address, city, zip, telephoneNumber, collegeMajor, sep = "\n" )
PLATA, Alyssa Sydney L.
FE-1201

B. Read and Display information


name = input("Enter name: ")
age = input("Enter age: ")
address = input("Enter address: ")
city = input("Enter city: ")
zipCode = input("Enter zip code: ")
telephoneNumber = input("Enter telephone number: ")
collegeMajor = input("Enter college major: ")

print ("\nPersonal Information\n" + "Name:" + name + "\n" +"Age:" + age + "\n"


+"Address:" + address + "\n" +"City:" + city + "\n" +"Zip code:" + zipCode + "\n"
+"Telephone Number:" + telephoneNumber + "\n" +"College Major:" +
collegeMajor)

You might also like