We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e85b02 commit d1a5d2eCopy full SHA for d1a5d2e
secretPasswordSolution
@@ -0,0 +1,21 @@
1
+# Create a program that:
2
+# Takes a user's input
3
+# checks if his input is equal to your secret password
4
+# prints if the user guessed the password correctly or not
5
+# do not end the program if the user guesses incorrectly,
6
+# ask him again until he guesses the correct password
7
+
8
+print('Start')
9
+while(True):
10
+ #INFINITE
11
+ print('Enter in your password')
12
+ usrinput = input()
13
+ mySecretPassword = 'your password'
14
+ if(usrinput == mySecretPassword):
15
+ break
16
+ else:
17
+ print("That's not right!")
18
19
20
+print('You guessed my secret password!')
21
+print('End')
0 commit comments