From 68f67cfdbc5339c1daf386576c17ef9bc753847d Mon Sep 17 00:00:00 2001 From: Nate Puckett Date: Fri, 19 Apr 2024 17:14:43 -0600 Subject: [PATCH 1/4] practice code --- exercises/print_exercises/print_exercise.py | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 exercises/print_exercises/print_exercise.py diff --git a/exercises/print_exercises/print_exercise.py b/exercises/print_exercises/print_exercise.py new file mode 100644 index 0000000..79d5a18 --- /dev/null +++ b/exercises/print_exercises/print_exercise.py @@ -0,0 +1,24 @@ +hi = ";oidjfga_kl;ifasklj;_klhj;asdf" +earth = "WORLD" +beach = "bitch" + +wee = hi + " " + earth +woo = hi + " " + beach + +#earth = "Hi " + +what = earth + " " + beach + +print(wee) +print(woo) +print(what) +separate = hi + "\n" + earth +print(separate) + +cap= earth.upper() +print(cap) + +smol=earth.lower() +print(smol) +gob=hi.upper() +print(gob) \ No newline at end of file From a22859214cfb68b501502d88b38c30f3e5e33d00 Mon Sep 17 00:00:00 2001 From: Nate Puckett Date: Wed, 8 May 2024 11:55:34 -0600 Subject: [PATCH 2/4] python practice homework --- practice_projects/#Homework pt.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 practice_projects/#Homework pt.py diff --git a/practice_projects/#Homework pt.py b/practice_projects/#Homework pt.py new file mode 100644 index 0000000..a27725b --- /dev/null +++ b/practice_projects/#Homework pt.py @@ -0,0 +1,19 @@ +#Homework pt.1 + +friend = ("Software is my friend!") +print (friend) + +#Homework pt.2 + +long_string = "This is a super long string.\n When I print this to the window, it will continue on the same line\n unless we do something about it.\n\nThis is for the homework, I would like it to look fancy, please!\n" +print (long_string) + +#Homework pt.3 + +up = "HeRe iS a harD to ReAd SenTenCe In RandOM CapItAls\n" +print(up.upper()) + +#Homework pt.4 + +low = "HeRe iS a harD to ReAd SenTenCe In RandOM CapItAls\n" +print(low.lower()) \ No newline at end of file From 765275411ad294d5d70bb997bd801faca15dfa70 Mon Sep 17 00:00:00 2001 From: Nate Puckett Date: Tue, 14 May 2024 14:44:21 -0600 Subject: [PATCH 3/4] Strings homework --- practice_projects/#Homework pt.py | 19 ----------------- practice_projects/#Homework_pt.py | 34 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 19 deletions(-) delete mode 100644 practice_projects/#Homework pt.py create mode 100644 practice_projects/#Homework_pt.py diff --git a/practice_projects/#Homework pt.py b/practice_projects/#Homework pt.py deleted file mode 100644 index a27725b..0000000 --- a/practice_projects/#Homework pt.py +++ /dev/null @@ -1,19 +0,0 @@ -#Homework pt.1 - -friend = ("Software is my friend!") -print (friend) - -#Homework pt.2 - -long_string = "This is a super long string.\n When I print this to the window, it will continue on the same line\n unless we do something about it.\n\nThis is for the homework, I would like it to look fancy, please!\n" -print (long_string) - -#Homework pt.3 - -up = "HeRe iS a harD to ReAd SenTenCe In RandOM CapItAls\n" -print(up.upper()) - -#Homework pt.4 - -low = "HeRe iS a harD to ReAd SenTenCe In RandOM CapItAls\n" -print(low.lower()) \ No newline at end of file diff --git a/practice_projects/#Homework_pt.py b/practice_projects/#Homework_pt.py new file mode 100644 index 0000000..96c66a7 --- /dev/null +++ b/practice_projects/#Homework_pt.py @@ -0,0 +1,34 @@ +#Homework pt.1 + +Friend= "\nSoftware is my friend!\n" +print (Friend) + +#Homework pt.2 + +Soft = "Software is" +my = "my friend\n" +print (Soft,my) + +#Homework pt.3 + +variable_1 = "I would like this to be a string\n" +print (variable_1) + +#Homework pt.4 + +long_string1 = "This is a super long string.\n" +long_string2 = " When I print this to the window, it will continue on the same line\n" +long_string3 = " unless we do something about it.\n\n" +long_string4 = "This is for the homework, I would like it to look facy, please!\n" +complete_string = long_string1 + long_string2 + long_string3 + long_string4 +print (complete_string) + +#Homework pt.5 + +up = "HeRe iS a harD to ReAd SenTenCe In RandOM CapItAls\n" +print(up.upper()) + +#Homework pt.6 + +low = "HeRe iS a harD to ReAd SenTenCe In RandOM CapItAls\n" +print(low.lower()) \ No newline at end of file From 5976094d20efc85d2ab2ed12774e320e4ea40a8f Mon Sep 17 00:00:00 2001 From: Nate Puckett Date: Tue, 14 May 2024 15:49:29 -0600 Subject: [PATCH 4/4] fixed the changes and made it cleaner --- practice_projects/#Homework_pt.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/practice_projects/#Homework_pt.py b/practice_projects/#Homework_pt.py index 96c66a7..32b98b7 100644 --- a/practice_projects/#Homework_pt.py +++ b/practice_projects/#Homework_pt.py @@ -1,27 +1,27 @@ #Homework pt.1 -Friend= "\nSoftware is my friend!\n" -print (Friend) +friend = "\nSoftware is my friend!\n" +print(friend) #Homework pt.2 -Soft = "Software is" +soft = "Software is " my = "my friend\n" -print (Soft,my) - +string1 = soft + my +print(string1) #Homework pt.3 variable_1 = "I would like this to be a string\n" -print (variable_1) +print(variable_1) #Homework pt.4 long_string1 = "This is a super long string.\n" -long_string2 = " When I print this to the window, it will continue on the same line\n" -long_string3 = " unless we do something about it.\n\n" +long_string2 = "\tWhen I print this to the window, it will continue on the same line\n" +long_string3 = "\tunless we do something about it.\n\n" long_string4 = "This is for the homework, I would like it to look facy, please!\n" complete_string = long_string1 + long_string2 + long_string3 + long_string4 -print (complete_string) +print(complete_string) #Homework pt.5