Write a program to Expand and print a string like "a-z" #Example: enter first string :b # enter last string: e #Output : bcde
Topic: Write a program to Expand and print a string like "a-z" #Example: enter first string :b # enter last string: e #Output : bcde
Solution
first = input("The first: ") last = input("The last: ") while first <= last: print(first, end='') first = chr(ord(first) + 1) print()
List all Python Programs