diff --git a/homeworks/ch1-hw1.py b/homeworks/ch1-hw1.py new file mode 100644 index 0000000..4539546 --- /dev/null +++ b/homeworks/ch1-hw1.py @@ -0,0 +1,3 @@ +user_name= input("Enter your name:") +fav_color= input("Enter favourite color:") +print (f"Hi,{user_name}. {fav_color} is your favourite color") \ No newline at end of file diff --git a/homeworks/ch1-hw2.py b/homeworks/ch1-hw2.py new file mode 100644 index 0000000..23008a7 --- /dev/null +++ b/homeworks/ch1-hw2.py @@ -0,0 +1,4 @@ +user_addr= input("Enter user address:") +item_name= input("Enter Item name:") +item_cost= input("Enter item cost:") +print(f"Address:{user_addr} \n Item Purchased:{item_name} \n Item Cost:${item_cost}") \ No newline at end of file diff --git a/homeworks/ch1-hw3.py b/homeworks/ch1-hw3.py new file mode 100644 index 0000000..5f84197 --- /dev/null +++ b/homeworks/ch1-hw3.py @@ -0,0 +1,2 @@ +prompt = input("Hi, Tell me what you have learnt today?\n") +print(f"Amazing to hear!! You have learnt {prompt}") \ No newline at end of file