4.7 Code Practice: Question 1

The program prints all the integers from 20 up to and including 30 on the same line. The program written in python 3 goes thus :
for num in range(20,31):
#use a for statement to loop through all the integers between 20 and 30(inclusive)
print(num, end =' ')
#print each iterated value, followed by a space with the cursor remaining on the same line.
A sample run of the program is attached.
Learn more :https://brainly.com/question/18855444