Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 527 Bytes

File metadata and controls

16 lines (11 loc) · 527 Bytes

Homework - Exercise 1

You have a list of numbers represented in one single string:

"13,27,5,67,39,2,10,89,41,7,9,73"

Iterate over this numbers and increase each of them by 2 (result should looks like this: "15,29,7,...") Print the new numbers as one comma-separated string to the console (format like the origin list of numbers represented in one single string) Use loops and str.split()

numbers = "13,27,5,67,39,2,10,89,41,7,9,73"

# put your code here

print(new_numbers) # 15,29,7,69,41,4,12,91,43,9,11,75