0
Hi somebody can help me please? It’s a bug 🥲
pin = int(input()) try: print ("PIN code is created") except (ValueError, NameError, TypeError, SyntaxError, ImportError): print ("Please enter a number")
11 Réponses
+ 1
try:
pin = int(input())
print("created")
except:
print("enter number")
+ 1
password = input()
repeat = input()
if password == repeat:
print('Correct')
else:
print('Incorrect')
Conditional is one of the basic and the simplest subject in python/programing, you should review it,
https://www.sololearn.com/learning/2277/
+ 1
Thanks Calvin
0
its working
0
Example of pin : hh88 tells me error
0
Works for numbers
0
Yes
0
Thanks it works now!!! 💙
0
Would you mind helping me with this code:
password = input()
repeat = input()
def validate(text1, text2):
I need they match and print correct or incorrect depending of the match
0
Here's the correct way of catching all the errors possible in your code:
try:
pin = int(input())
print("The PIN has been created")
except TypeError:
print("Please enter a valid number")
# Hope this helps
- 1
wut