File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 24
24
25
25
26
26
while chances > 0 :
27
+ print (f"Chances left: { chances } " )
27
28
user = input ("Enter your username: " )
28
29
passw = input ("Enter your password: " )
29
- print (f"Chances left: { chances } " )
30
30
for i in range (len (username )):
31
31
if username [i ] == user and password [i ] == passw :
32
32
print (f"Welcome { username [i ]} " )
33
33
break
34
34
else :
35
35
print ("Account not found" )
36
36
chances -= 1
37
+ break
Original file line number Diff line number Diff line change
1
+ for x in range (5 ):
2
+ for y in range (x + 1 ):
3
+ print ("*" , end = " " )
4
+ print ()
5
+
6
+ # Code to print a heart shape using asterisks (*)
7
+ for row in range (6 ):
8
+ for col in range (7 ):
9
+ if (row == 0 and col % 3 != 0 ) or (row == 1 and col % 3 == 0 ) or (row - col == 2 ) or (row + col == 8 ):
10
+ print ("*" , end = " " )
11
+ else :
12
+ print (" " , end = " " )
13
+ print ()
14
+
You can’t perform that action at this time.
0 commit comments