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)
Just quizlet it believe me it will help 100%
You can address 2^16 words and each word is 8 bit (= 1 byte). Therefore it is 64 KB.
If the word size was 16 bit. The answer would be 128 KB.
Answer:
The correct option to the following question is my_array[2] = 45.
Explanation:
Because the offset '8' which used for the subscript 8 divided by 4 which is 2.
So, that's why my_array[2] = 45 is the correct answer to the following question.
An array is the data type in the programming languages which stores the same type of data at a time whether it an integer type or string type.