Browse Source

https://github.com/mahiva99/mahiv.git

Kris Kamau 6 days ago
commit
7d0de3e94a
7 changed files with 76 additions and 0 deletions
  1. 8 0
      90 dys of code.code-workspace
  2. 20 0
      aboutme.py
  3. 10 0
      dy 1.py
  4. 1 0
      dy2.py
  5. 0 0
      dy3.py
  6. 0 0
      dy4
  7. 37 0
      dy4 assignment.py

+ 8 - 0
90 dys of code.code-workspace

@@ -0,0 +1,8 @@
+{
+	"folders": [
+		{
+			"path": "."
+		}
+	],
+	"settings": {}
+}

+ 20 - 0
aboutme.py

@@ -0,0 +1,20 @@
+firstname="Paul"
+lastname="Mahiva"
+age=19
+height=173
+weight=70
+uni="JKUAT"
+course="Information Technology" 
+
+def myfunc():
+    global course
+    course="Computer Science"
+
+    myfunc()
+    print("FIRST NAME : ", firstname)
+    print("LAST NAME : ", lastname)
+    print("AGE : ", age)
+    print("HEIGHT : ", height)
+    print("WEIGHT : ", weight)
+    print("UNI : ", uni)
+    print("COURSE : ", course)

+ 10 - 0
dy 1.py

@@ -0,0 +1,10 @@
+print ("Hello,World!")
+print ("What is your name?") 
+is_raining=True
+print (is_raining)
+age=20
+print(age)
+print(f"I am {age}")
+print("I am "+str(age))
+print ("I am", age , "years")
+print ("I am 20") 

+ 1 - 0
dy2.py

@@ -0,0 +1 @@
+print ("Today is dy 2")

+ 0 - 0
dy3.py


+ 0 - 0
dy4


+ 37 - 0
dy4 assignment.py

@@ -0,0 +1,37 @@
+First_name = "Paul"
+Last_name = "Mahiva"
+AGE = 19
+Height = 1.73
+Course = "Information Technology"
+University = "JKUAT"
+Year_of_study = 2
+Favourite_coding_language = "Python"
+Dream_company = "Google" 
+Dream_job = "Software Engineer"
+Number_of_siblings = 0
+Owns_a_laptop = True
+Has_programming_experience = True
+Married = False
+Years_of_experience = 1
+Country_of_residence = "Kenya"
+Weight = 70
+Hobbies = "Swimming, Reading, Coding"
+
+print(type(First_name))
+print(type(Last_name))
+print(type(AGE))
+print(type(Height))
+print(type(Course))
+print(type(University))
+print(type(Year_of_study))
+print(type(Favourite_coding_language))
+print(type(Dream_company))
+print(type(Dream_job))
+print(type(Number_of_siblings))
+print(type(Owns_a_laptop))
+print(type(Has_programming_experience))
+print(type(Married))
+print(type(Years_of_experience))
+print(type(Country_of_residence))       
+print(type(Weight))
+print(type(Hobbies))