How to Print 1-100 in Python without using Numbers (Python Tests 01)

preview_player
Показать описание
If you enjoy this video, please subscribe.

If there's a specific video you would like to see or a tutorial series, let me know in the comments and I will try and make it.

You can follow me at:
Рекомендации по теме
Комментарии
Автор

a = ""
b = "a"
c =
d = eval(c)

for i in range(len(b), d):
print(i)


This worked for me

ronchristino
Автор

We can use ord() function to convert characters to integers.. like ord(‘B’)-ord(‘A’) is 1 and ord(‘d’) is 100

hackwithharsha
Автор

Coming from Naveen automation labs Java interview questions.. recently a week back he covered similar question in Java

hackwithharsha
Автор

digits = "0123456789"

for ten in digits:
for one in digits:
print(ten + one)

print("100")

olgierd