From 09400ee5db5adc91aee77cd3976b58acd52ee572 Mon Sep 17 00:00:00 2001 From: Klimets Date: Thu, 17 Oct 2019 15:35:44 +0300 Subject: [PATCH 1/5] Initial commit Add file main.py, which print "Hello world" --- main.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 main.py diff --git a/main.py b/main.py new file mode 100644 index 0000000..44159b3 --- /dev/null +++ b/main.py @@ -0,0 +1 @@ +print("Hello world") From 14937586fcdb438a3fc785f3b8fc08d3164e20e7 Mon Sep 17 00:00:00 2001 From: Klimets Date: Thu, 17 Oct 2019 16:06:37 +0300 Subject: [PATCH 2/5] owner_name Added the ability to enter some name and the script will respond with a greeting using the entered name. And after this print a question "How is the weather today?" --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 44159b3..7e8bc05 100644 --- a/main.py +++ b/main.py @@ -1 +1 @@ -print("Hello world") +print("Hello brave new world") From dec9424b5ad41077e462ff144138948c61833561 Mon Sep 17 00:00:00 2001 From: Klimets Date: Thu, 17 Oct 2019 16:06:37 +0300 Subject: [PATCH 3/5] owner_name Added the ability to enter some name and the script will respond with a greeting using the entered name. And after this print a question "How is the weather today?" --- main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 7e8bc05..9b34034 100644 --- a/main.py +++ b/main.py @@ -1 +1,8 @@ -print("Hello brave new world") +while True: + name = input("please enter your name: ") + if name.isalpha(): + break + else: + print("Invalid name") +print(f"Hello {name}") +print("How is the weather today?") From e865ed1bb8ab1eebada8c0945e819038752aa245 Mon Sep 17 00:00:00 2001 From: Zavxoz Date: Sun, 1 Dec 2019 01:34:07 +0300 Subject: [PATCH 4/5] add .gitignore file --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..76ce7fc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.jpg From 2ae86bd8e792d9e2b389e29eb1259dfd8b2275a7 Mon Sep 17 00:00:00 2001 From: Zavxoz Date: Sun, 1 Dec 2019 01:35:01 +0300 Subject: [PATCH 5/5] Revert "add .gitignore file" This reverts commit e865ed1bb8ab1eebada8c0945e819038752aa245. --- .gitignore | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .gitignore diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 76ce7fc..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.jpg