repl.it
@JerryTheMouse/

numberTruthynessChecker

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
while 1:
     import time as t
     b = 5
     try:
        i=int(input("Enter the number that you want to check for truthiness: "))
        # paste the below eception here
     
     try:
         if str(i) == "11011":
           exit = input(f"Do you want to [E]xit or [C]heck the number {i}: ")
           if exit.upper() == "E":
             print("Press CTRL+C before 10 seconds... ")

             for a in range(5):
               print(f"... {a+1} seconds left...")
               t.sleep(1)
           elif exit.upper() == "C":
               if i:
                 print(f"IF YOU ARE SEEING THIS, THIS NUMBER ({str(i)}) IS TRUTHY...")
                 print("Enter \"11011\" then CTRL+C to force stop the program...")
               else:
                 print(f"IF YOU ARE SEEING THIS, THIS NUMBER ({str(i)}) IS FALSY...")
                 print("Enter \"11011\" then CTRL+C to force stop the program...")

         elif i:
           print(f"IF YOU ARE SEEING THIS, THIS NUMBER ({str(i)}) IS TRUTHY...")
           print("Enter \"11011\" then CTRL+C to force stop the program...")
         else:
           print(f"IF YOU ARE SEEING THIS, THIS NUMBER ({str(i)}) IS FALSY...")
           print("Enter \"11011\" then CTRL+C to force stop the program...")

     except ValueError:
        print("INPUT ERROR: Cannot process strings")

     except KeyboardInterrupt:
        print("\nPROGRAM: You toggled CTRL+C, force stopping...")

     except TypeError:
        print ("TYPE ERROR: Please try again, an error eccured")

print ("""Error: Cannot Process or something occured that is not getting processed.
Please try again...""")
?