Write a python program that creates a set with twelve things. Use a looping structure to enter the values. Then enter three things in another set and see if any things are in common
******************************************************************************************
Please Upvote the answer as it matters to me a lot :)
*****************************************************************************************
As per HomeworkLib expert answering guidelines,Experts are supposed to
answer only certain number of questions/sub-parts in a post.Please
raise the remaining as a new question as per HomeworkLib
guidelines.
******************************************************************************************
things = set({})
for i in range(12):
x= input()
things.add(x)
anotherset= set({})
anotherset.add("HomeworkLib")
anotherset.add("is")
anotherset.add("good")
ans=[]
for x in anotherset:
if x in things:
ans.append(x)
if len(ans)>0:
print ("Things in common are :")
for x in ans:
print(x,end=" ")
else:
print ("There are no Things in common.")

Write a python program that creates a set with twelve things. Use a looping structure to...
Write a Python program that creates a set of ten elements with random numbers between 1 and 100, and then prints out the values in sorted order
USE IDLE PLATFORM FOR PYTHON PLEASE Write a Python program that creates a list that contains players of your favorite teams. The program then should ask the user to enter the name of a player. If the player is in your list, display a message indicating that the player is in the team. Otherwise, the program should display a message stating that the player isn't on the team.
PYTHON 1- Write a program that creates a dictionary of the English words for all single digit numbers as follows: 1: 'one', 2: 'two', 3: 'three', etc. 2- Write a function called numConvert that receives the above dictionary and an integer number as parameters, and prints the English words for all the number's digits. For example, if the function receives 2311, it will print: two three one one 3- Test your program by adding a main function, which calls numConvert....
python Make another code block that creates a list using range( ) with 8 values starting with 1. print out your list Create a set from each of the three lists. Find the elements in common between the three sets.
In PYTHON Write a program that # 1) Creates a list of 25 numbers that are all different # 2) Takes a user-input number and then determines which number in the list is closest to the user-input number.
2. Write a Python program that creates and array with the following floats (1.0, 8.3, 6.5, 6.6). Then reverse the order of the array. Answer in Python Please.
In Python 3, Write a program that reads a set of floating-point values. Ask the user to enter the values, then print: The number of values entered. The smallest of the values The largest of the values. The average of the values. The range, that is the difference between the smallest and largest values. If no values were entered, the program should display “No values were entered” The program execution should look like (note: the bold values are sample user...
Write a Python program that creates a class which represents a candidate in an election. The class must have the candidates first and last name, as well as the number of votes received as attributes. The class must also have a method that allows the user to set and get these attributes. Create a separate test module where instances of the class are created, and the methods are tested. Create instances of the class to represent 5 candidates in the...
4- Write a python program which creates a Pandas DataFrame with columns of 10 student names (i.e. S1, S2, ... S10) and their final grades having [95, 88, 68, 92, 77, 71, 90, 69, 83, 93]. In your program add another column which calculates and shows the students letter grades. (Grading Scheme : 90+:A, 80-89:B, 70-79:C, 60-69:D)
Write a C program which creates a template for a structure to store somebody's date of birth (day, month, and year). Then write a C function that takes two such structure, one which represents the date of birth, and the other today's date, and returns the age of the user in years. Your function can either provide the full year only (integer) or the floating point age (bonus marks). Next, write a C program which asks the user to enter...