Answer:
Explanation:
The following Python code asks the user for inputs for the name to remove and add in the set. It then tries to remove the given name from the list. If it fails it prints out to the user saying that the name does not exist. If it does exist then it removes the name and adds the new name. Finally it prints out the current list of names.
male_names = {'oliver', 'Declan', 'Henry'}
name_to_remove = input("Enter name to remove: ")
name_to_add = input("Enter name to add: ")
try:
male_names.remove(name_to_remove)
male_names.add(name_to_add)
except:
print("Name that you are trying to remove does not exist")
print("List of Names: ")
print(male_names)
Explanation:
makes info easy to get
improves communication
enhances education
etc
plsss mark me brainliesttt
Answer:
Program source code found in explaination
Explanation:
Recursive int function of the asked question.;
int productOfOdds(int array[],int length) {
int product=1;
if(length==0)
return -1;
else if(length==1) {
if(array[length-1]%2!=0)
return array[length-1];
else
return 1;
}
else {
product=productOfOdds(array,--length);
if(array[length]%2!=0) {
product=product*array[length];
}
}
return product;
}
The program is an illustration of the square function.
The square function takes a number, and returns the square of the number; i.e. the product of the number twice.
So, the square function in Python, where comments are used to explain each line is as follows:
#This defines the square function
def square(num):
#This returns the square of the argument
return num**2
#This gets input for the number
num = int(input("Number: "))
#This calculates the square of the number
x = square(num)
#This prints the square
print("Square:",x)
Read more about Python functions at:
brainly.com/question/25120954
Answer:
El signo =.
Explanation:
La pregunta refiere a las fórmulas que se utilizan en el programa Excel. Esta es una hoja de cálculo desarrollada por Microsoft para computadoras que utilizan el sistema operativo Windows. Es, con mucho, la hoja de cálculo más utilizada para estas plataformas. Microsoft Excel se utiliza como hoja de cálculo y para analizar datos, así como para crear una base para la toma de decisiones. En Excel, se pueden realizar cálculos, configurar tablas, crear informes y analizar volúmenes de datos.
Además, dentro de sus celdas existe la posibilidad de realizar fórmulas, que emulan las fórmulas matemáticas y realizan cálculos específicos entre distintas celdas.