From d037f8a2a099db66589c8be3838972f61d7d659b Mon Sep 17 00:00:00 2001 From: ShivangiPatel102 <85575373+ShivangiPatel102@users.noreply.github.com> Date: Tue, 9 Nov 2021 00:30:26 +0530 Subject: [PATCH 1/4] Create Remove repeated words from wordlist --- Scripts/Miscellaneous/Remove repeated words from wordlist | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Scripts/Miscellaneous/Remove repeated words from wordlist diff --git a/Scripts/Miscellaneous/Remove repeated words from wordlist b/Scripts/Miscellaneous/Remove repeated words from wordlist new file mode 100644 index 000000000..878f17cb4 --- /dev/null +++ b/Scripts/Miscellaneous/Remove repeated words from wordlist @@ -0,0 +1,5 @@ +wordlist = ['abc', 'bcf', 'abc', 'ghi', 'ghi','xyz'] +finalWordlist = list(set(wordlist)) +f = open("nonRepeatedWords", "w") +n = f.write(f"Wordlist: {finalWordlist}\n") +f.close() From 85b27a41b1d74c4441fb80a63ade7587a2409fab Mon Sep 17 00:00:00 2001 From: ShivangiPatel102 <85575373+ShivangiPatel102@users.noreply.github.com> Date: Tue, 9 Nov 2021 01:02:14 +0530 Subject: [PATCH 2/4] Update Remove repeated words from wordlist --- Scripts/Miscellaneous/Remove repeated words from wordlist | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Miscellaneous/Remove repeated words from wordlist b/Scripts/Miscellaneous/Remove repeated words from wordlist index 878f17cb4..4d42baf5a 100644 --- a/Scripts/Miscellaneous/Remove repeated words from wordlist +++ b/Scripts/Miscellaneous/Remove repeated words from wordlist @@ -1,5 +1,5 @@ -wordlist = ['abc', 'bcf', 'abc', 'ghi', 'ghi','xyz'] +wordlist = [i for i in input().split()] finalWordlist = list(set(wordlist)) -f = open("nonRepeatedWords", "w") +f = open("nonRepeatedWords.txt", "w") n = f.write(f"Wordlist: {finalWordlist}\n") f.close() From 22202fc41e7296c4a5260310f9d70a220efb0a67 Mon Sep 17 00:00:00 2001 From: ShivangiPatel102 <85575373+ShivangiPatel102@users.noreply.github.com> Date: Tue, 9 Nov 2021 16:27:49 +0530 Subject: [PATCH 3/4] Create Digital Clock --- Digital Clock | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Digital Clock diff --git a/Digital Clock b/Digital Clock new file mode 100644 index 000000000..26a5f1ca8 --- /dev/null +++ b/Digital Clock @@ -0,0 +1,22 @@ +from tkinter import Label, Tk +import time + +console = Tk() +console.title("Digital Clock") +console.geometry("420x150") + +textFont = ("Arial", 68, "bold") +background = "#87CEFA" #(lightskyblue) +foreground = "#000000" #(black) +borderWidth = 25 + +label = Label(console, font=textFont, bg= background, fg= foreground, bd= borderWidth) +label.grid(row= 0, column = 1) + +def digitalClock(): + currentTime = time.strftime("%H:%M:%S") #gives current localtime + label.config(text= currentTime) + label.after(1000, digitalClock) #recursion for changing the label every second + +digitalClock() +console.mainloop() From 6d3b55aef20feeda3cfff941d7bbdc26cbcc70d2 Mon Sep 17 00:00:00 2001 From: ShivangiPatel102 <85575373+ShivangiPatel102@users.noreply.github.com> Date: Tue, 9 Nov 2021 16:41:29 +0530 Subject: [PATCH 4/4] Delete Digital Clock --- Digital Clock | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Digital Clock diff --git a/Digital Clock b/Digital Clock deleted file mode 100644 index 26a5f1ca8..000000000 --- a/Digital Clock +++ /dev/null @@ -1,22 +0,0 @@ -from tkinter import Label, Tk -import time - -console = Tk() -console.title("Digital Clock") -console.geometry("420x150") - -textFont = ("Arial", 68, "bold") -background = "#87CEFA" #(lightskyblue) -foreground = "#000000" #(black) -borderWidth = 25 - -label = Label(console, font=textFont, bg= background, fg= foreground, bd= borderWidth) -label.grid(row= 0, column = 1) - -def digitalClock(): - currentTime = time.strftime("%H:%M:%S") #gives current localtime - label.config(text= currentTime) - label.after(1000, digitalClock) #recursion for changing the label every second - -digitalClock() -console.mainloop()