Answer to Question #329566 in Python for manikanta

Question #329566

write a program to print half of the numbers


1
Expert's answer
2022-04-16T15:14:25-0400
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))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS