diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..7ba73c2 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..51ab974 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/test.iml b/.idea/test.iml new file mode 100644 index 0000000..6711606 --- /dev/null +++ b/.idea/test.iml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/test2.py b/test2.py index 3c24862..a605828 100644 --- a/test2.py +++ b/test2.py @@ -7,6 +7,14 @@ class bcolors: WARNING = '\033[93m' FAIL = '\033[91m' ENDC = '\033[0m' + def set_color(self, color): + if(color == "g"): + print(self.OKGREEN) + elif(color == "b"): + print(self.OKBLUE) + + def end_color(self): + print(self.ENDDC) while True: count = 0 @@ -60,5 +68,5 @@ while True: print(str(count) + ' results in'), time2 = time.time() time3 = time2 - time1 - print(str(time3) + " seconds") + print("Your search took " + str(time3) + " seconds") print('\033[0m')