Answer to Question #302604 in Python for Lucifer

Question #302604

Algorithm,flow chart and pseudocode for sequence of comma separated numbers

1
Expert's answer
2022-02-25T03:39:30-0500
s = str(input("Enter few numbers separated by coma: "))
s = s.split(",")
nums=[]
for r in range(0,len(s)):
    nums.append(int(s[r]))
print(nums)  





Pseudocode:

 

-         Enter few numbers in a string separated by comas

-         Split the string using delimiter “,”

-         Create a blank integer array named nums

-         Fill the nums with integers by converting s elements in int

-         Display the nums




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