TORONTO KIDS COMPUTER CLUB | Tuesday Python Homework 18:30 – 22.05.03.
20616
post-template-default,single,single-post,postid-20616,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Tuesday Python Homework 18:30 – 22.05.03.

08 May Tuesday Python Homework 18:30 – 22.05.03.

Question: (We did this question before, but please use set we learned from class to solve the question this time.)
Use input() to take 10 input from user, each item is separated by space. Then try to complete the following task:

  • Create a list from the input
  • Delete all repeated elements of the list.
Sample Input 1:
1 2 3 2 1 3 98 98 67

Sample Output 1:
1,2,3,98,67

Sample Input 2:
Kevin Jack Kevin Jack Kevin Jack Kevin Kevin Jack Jack

Sample Output 2:
Kevin,Jack
No Comments

Sorry, the comment form is closed at this time.