Browse Source

dy4 assignment

Kris Kamau 6 days ago
parent
commit
6562313ec4
1 changed files with 41 additions and 0 deletions
  1. 41 0
      dy4 assignment.py

+ 41 - 0
dy4 assignment.py

@@ -1,3 +1,23 @@
+First_name = input("Enter your first name: ")   
+Last_name = input("Enter your last name: ")
+AGE = (input("Enter your age: "))
+Height = (input("Enter your height in meters: "))
+Course = input("Enter your course of study: ")
+University = input("Enter your university name: ")
+Year_of_study = (input("Enter your year of study: "))
+Favourite_coding_language = input("Enter your favourite coding language: ")
+Dream_company = input("Enter your dream company: ")     
+Dream_job = input("Enter your dream job: ")
+Number_of_siblings = (input("Enter the number of siblings you have: "))  
+Owns_a_laptop = input("Do you own a laptop? (yes/no): ")
+Has_programming_experience = input("Do you have programming experience? (yes/no): ")
+Married = input("Are you married? (yes/no): ").strip().lower() 
+Years_of_experience = (input("Enter your years of experience: "))
+Country_of_residence = input("Enter your country of residence: ")
+Weight = (input("Enter your weight in kilograms: "))
+Hobbies = input("Enter your hobbies (comma-separated): ").split(",")    
+
+===STUDENT PROFILE===
 First_name = "Paul"
 First_name = "Paul"
 Last_name = "Mahiva"
 Last_name = "Mahiva"
 AGE = 19
 AGE = 19
@@ -35,3 +55,24 @@ print(type(Years_of_experience))
 print(type(Country_of_residence))       
 print(type(Country_of_residence))       
 print(type(Weight))
 print(type(Weight))
 print(type(Hobbies))
 print(type(Hobbies))
+
+#PREDICT
+type(First_name) = str
+type(Last_name) = str
+type(AGE) = int
+type(Height) = float
+type(Course) = str
+type(University) = str
+type(Year_of_study) = int
+type(Favourite_coding_language) = str
+type(Dream_company) = str
+type(Dream_job) = str
+type(Number_of_siblings) = int
+type(Owns_a_laptop) = bool
+type(Has_programming_experience) = bool
+type(Married) = bool
+type(Years_of_experience) = int
+type(Country_of_residence) = str
+type(Weight) = float
+type(Hobbies) = list
+