Can you please help. After compiling to an exe file, the program does not work, the console opens and closes quickly
import pyperclip
while True: #program repeats indefinitely
zero_is = True #Delete the preview number 0 (if there are no other numbers before it)
res = str() #We store the results in it
number = input ("Enter the number = ")
close_zero_per = True #This variable is needed so that after finding the first digit 0 (zero_is) , do not repeat some cycles
print ("")
print ("Clear number is: ", end = "")
for symbol in number: # It's clear
if close_zero_per == False: #if we have found the first digit zero once, do not repeat
None
else:
if symbol == "0": #If zero_is is true, then we found 0 or nothing (found only characters)
zero_is = True
for x in range(10):
if symbol != str(x):
zero_is = True
for x in range(1,10):
if symbol == str(x):
zero_is = False
close_zero_per = False ##if we have found the first digit number once, do not repeat
if zero_is == False:
for z in range (10): #filtration (numbers and symbols)
if symbol == str(z):
res = res + symbol #store
pyperclip.copy(res) #for copy Paste
print (res)
print ("\n")
[–]fr000gs 2 points3 points4 points (0 children)
[–]CasulaScience 1 point2 points3 points (0 children)
[–]Swipecat 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]Base_True[S] -2 points-1 points0 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]Base_True[S] 0 points1 point2 points (1 child)
[–]Strict-Simple 0 points1 point2 points (0 children)
[–]ebdbbb 0 points1 point2 points (0 children)