Advertisement
MaximTakkaTo

task1

Mar 11th, 2022
718
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. input_string = str.split(input(),";")
  2.  
  3. output = "На занятии присутствовало " + str(len(input_string)) + " человек: "
  4.  
  5. i = 0
  6. for s in input_string:
  7.     output += s
  8.     i += 1
  9.     if (i < len(input_string)):
  10.         output += ", "
  11. print(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement