3 odpowiedzi
+ 5
Do you want;
1
==
2
==
3
==
4
==
5
Or
1==2==3==4==5
Without a loop
print(*range(1, 6), sep='\n==\n')
Or
print(*range(1, 6), sep='==')
With a loop
for n in range(1, 5):
print(n, end='\n==\n')
print(n+1)
Or
for n in range(1, 5):
print(n, end='==')
print(n+1)
+ 3
Ohk I see. Thanks
+ 1
The first one