Çözüldü Kodun yanlış kısmı neresidir?

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.
Çözüm
Kod:
LicenseKey = input("Input License Key: ")   
if LicenseKey == "Kenzy":
    print("Key is VAILD!")
    time.sleep(0.5)
else:
    print("Invaild Key!")
    print("Press Enter to quit!")   
    input()
    exit()

def main():
    
    time.sleep(0.2)
    addres = input(f"{Fore.GREEN}[$]"f"{Fore.LIGHTRED_EX} >     Enter your ETH address: ")
    time.sleep(0.5)
    print(f"{Fore.GREEN}[$]"f"{Fore.LIGHTRED_EX} >     ETH address is connected !")

main()

Bunu dener misiniz?
Hata falan yok mu? Nereye eklediniz main() satirini. Mesajimi guncelledim, o sekilde deneyin.
Yine olmadı.

1673617154801.png
 
Kod:
LicenseKey = input("Input License Key: ")   
if LicenseKey == "Kenzy":
    print("Key is VAILD!")
    time.sleep(0.5)
else:
    print("Invaild Key!")
    print("Press Enter to quit!")   
    input()
    exit()

def main():
    
    time.sleep(0.2)
    addres = input(f"{Fore.GREEN}[$]"f"{Fore.LIGHTRED_EX} >     Enter your ETH address: ")
    time.sleep(0.5)
    print(f"{Fore.GREEN}[$]"f"{Fore.LIGHTRED_EX} >     ETH address is connected !")

main()

Bunu dener misiniz?
 
Çözüm
Kod:
LicenseKey = input("Input License Key: ")
if LicenseKey == "Kenzy":
 print("Key is VAILD!")
 time.sleep(0.5)
else:
 print("Invaild Key!")
 print("Press Enter to quit!")
 input()
 exit()

def main():

 time.sleep(0.2)
 addres = input(f"{Fore.GREEN}[$]"f"{Fore.LIGHTRED_EX} > Enter your ETH address: ")
 time.sleep(0.5)
 print(f"{Fore.GREEN}[$]"f"{Fore.LIGHTRED_EX} > ETH address is connected !")

main()

Bunu dener misiniz?

Oldu sağ olun.
 

Yeni konular

Geri
Yukarı