breanacopprue8650 breanacopprue8650
  • 25-06-2021
  • Computers and Technology
contestada

Given that s refers to a set, write a statement that attempts to remove integer 11 from the set, but will do nothing if 11 is not in the set.

Respuesta :

tallinn tallinn
  • 26-06-2021

Answer:

Here is the code:-

#(5) Given that s refers to a set, write a statement that attempts  

#to remove the int value 11 from the set, but will do nothing if 11 is  

#not in the set  

#check if 11 is in not in s  

if 11 is not in s:  

   pass  

else:  

   #other wise remove 11 from s  

   s.remove(11)

Explanation:

Ver imagen tallinn
Answer Link

Otras preguntas

formula is given along with the values of all but one of the variable. Find the value of the variable that is not given. Use 3.14 as an approximation for pi P=
WHERE CAN I REPORT BRAINLY, THEY ARE NOT HELPING ME AT ALL I'M GETTING IRRITATED
an atom with atomic number of 6 would have how many protons?
describe the sound of two dogs barking
I know the answer is B...but how? will mark brainiest
Sandy and Maria worked the following weekly hours this summer at a summer camp. Which of the following statements are true? sandy - 15, 25, 12, 30, 26, 18 maria
HELP HELP ME ASAP. EASY
9/32 + 7/8 expression and simplify it
Tom and Jerry both earn the same monthly salary. Each month Tom saves 35% of his salary. Jerry spends 3/5 of his salary and saves the rest of his salary. Work o
A triangle has a base of 9 meters and a height of 6 meters. What is the area of the triangle?