Advertisement
chiasan

update info

Nov 29th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.34 KB | None | 0 0
  1. dash = '-'*40
  2. #Program gets the personal information of the person
  3. #Then it is suppose to show the output in order from the first person's
  4. #name and address to the next and next
  5.  
  6. #Function 1
  7. def getPersonalInfo(First, Last, Age, Height, First1, Last1, Age1, Height1, First2, Last2, Age2, Height2):
  8.     print('First Name: ',First)
  9.     print('Last Name: ',Last)
  10.     print('Age: ',Age)
  11.     print('Height: ',Height)  
  12.  
  13.     print(dash)
  14.    
  15.     print('First Name: ',First1)
  16.     print('Last Name: ',Last1)
  17.     print('Age: ',Age1)
  18.     print('Height: ',Height1)
  19.  
  20.     print(dash)
  21.  
  22.     print('First Name: ',First2)
  23.     print('Last Name: ',Last2)
  24.     print('Age: ',Age2)
  25.     print('Height: ',Height2)
  26.  
  27.     print(dash)
  28. #Function 2
  29. def getAddressInfo(Street, City, State, Zip, Street1, City1, State1, Zip1, Street2, City2, State2, Zip2):
  30.  
  31.     print('Street Address: ',Street)
  32.     print('City: ',City)
  33.     print('State: ',State)
  34.     print('Zip Code: ',Zip)
  35.  
  36.     print(dash)
  37.    
  38.     print('Street Address: ',Street1)
  39.     print('City: ',City1)
  40.     print('State: ',State1)
  41.     print('Zip Code: ',Zip1)
  42.  
  43.     print(dash)
  44.    
  45.     print('Street Address: ',Street2)
  46.     print('City: ',City2)
  47.     print('State: ',State2)
  48.     print('Zip Code: ',Zip2)
  49.  
  50.     print(dash)
  51.  
  52.  
  53. #def main() gives the users questions to answer about their personal self/address
  54. def main():
  55.     First = input("Enter First Name of first person: ")
  56.     Last = input("Enter Last Name of first person: ")
  57.     Age = input("Enter Age of first person: ")
  58.     Height = input("Enter height of first person: ")
  59.  
  60.     print(dash)
  61.  
  62.     First1 = input("Enter First Name of second person: ")
  63.     Last1 = input("Enter Last Name of second person: ")
  64.     Age1 = input("Enter Age of second person: ")
  65.     Height1 = input("Enter height of second person: ")
  66.  
  67.     print(dash)
  68.  
  69.  
  70.     First2 = input("Enter First Name of third person: ")
  71.     Last2 = input("Enter Last Name of third person: ")
  72.     Age2 = input("Enter Age of third person: ")
  73.     Height2 = input("Enter height of third person: ")    
  74.  
  75.     print(dash)
  76.  
  77.     Street = input("Enter Street Address of first person :")
  78.     City = input("Enter City of first person : ")
  79.     State = input("Enter State of first person : ")
  80.     Zip = input("Enter Zip of first person : ")
  81.    
  82.     print(dash)
  83.  
  84.     Street1 = input("Enter Street Address of first person :")
  85.     City1 = input("Enter City of first person : ")
  86.     State1 = input("Enter State of first person : ")
  87.     Zip1 = input("Enter Zip of first person : ")
  88.     print(dash)
  89.  
  90.  
  91.     Street2 = input("Enter Street Address of third person :")
  92.     City2 = input("Enter City of third person : ")
  93.     State2 = input("Enter State of third person : ")
  94.     Zip2 = input("Enter Zip of third person : ")
  95.  
  96.     print(dash)
  97.    
  98.    
  99.     getPersonalInfo(First, Last, Age, Height, First1, Last1, Age1, Height1, First2, Last2, Age2, Height2)
  100.     getAddressInfo(Street, City ,State, Zip, Street1, City1, State1, Zip1, Street2, City2, State2, Zip2)
  101. #getpersonalinfo get's information from def getpersonalinfo then enters the
  102.     #codes into def main() and shows the output of that section.
  103. #getaddressinfo does the same, but with the other section instead
  104.  
  105. #I am trying to find out how to put the name and address in order from
  106.     #first person's personal name/address to second, third.
  107.    
  108.  
  109. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement