Answer:
Following are the code to the given question:
For code 1:
start = int(input())#defining a start variable that takes input from the user end
end = int(input())#defining a end variable that takes input from the user end
if start > end:#use if that checks start value greater than end value
    print("Second integer can't be less than the first.")#print message
else:#defining else block
    while start <= end:#defining a while loop that checks start value less than equal to end value
        print(start, end=' ')#print input value
        start += 5#incrementing the start value by 5
    print()#use print for space
For code 2:
while True:#defining a while loop that runs when its true
    data = input()#defining a data variable that inputs values
    if data == 'Done' or data == 'done' or data == 'd':#defining if block that checks data value
        break#use break keyword
    rev = ''#defining a string variable rev
    for ch in data:#defining a for loop that adds value in string variable  
        rev = ch + rev#adding value in rev variable
    print(rev)#print rev value
Explanation:
In the first code two-variable "first and end" is declared that takes input from the user end. After inputting the value if a block is used that checks start value greater than end value and use the print method that prints message.
In the else block a while loop is declared that checks start value less than equal to end value and inside the loop it prints input value and increments the start value by 5.
In the second code, a while loop runs when it's true and defines a data variable that inputs values. In the if block is used that checks data value and use break keyword.
In the next step, "rev" as a string variable is declared that uses the for loop that adds value in its variable and prints its values.