write a program to print half of the numbers
number = input("Please enter number separate space: ").split(' ')
number = [int(i) for i in number]
print(" You entered: " + str(number))
half_number = []
for i in range(int(len(number) / 2)):
half_number.append(number[i])
print("Half of numbers: " + str(half_number))
Comments
Leave a comment