Sorry don't understand spanish,I am sure you can get it wrong,for crying out loud you people get checks for coming to United States
Answer:
listNumbers = [34,56,23,56,78,89,98,45,34,33,25,26,67,78]
listString = [ ]
for i in range(14):
if listNumbers[i]%2!=0 and listNumbers[i]%5==0:
listString.append("five odd")
elif listNumbers[i]%5==0 and listNumbers[i]%2==0:
listString.append("five even")
elif listNumbers[i]%2==0:
listString.append("even")
elif listNumbers[i]%2!=0:
listString.append("odd")
print(listNumbers)
print(listString)
Explanation:
In python programming language;
- Create two lists
- The first is a list of numbers and initialize it with random values: listNumbers = [34,56,23,56,78,89,98,45,34,33,25,26,67,78]
- The second list is empty and will hold the string values listString = [ ]
- Use a for loop to iterate over all the elementts in the list of numbers
- Use the modulo operator (%) to chech for multiples of particular numbers as stipulated by the question
- Use combination of if/elif statements for each condition
- Use the .append method to add the elements into the list of strings
- finially output both lists
See attached code and output
When you copy a file to the desktop you are putting the actual file on the desktop whereas when you put a short cut on the desktop you are just placing a reference to where the file is actually located.
Stafford Leak Warren (July 19, 1896 - July 26, 1981) was an American physician and ... He was responsible<span> for the health and safety of the thousands of personnel ... The medical school had opened in 1925 and did not </span>graduate<span> its first class ... Brigadier</span>General<span> Leslie R. Groves, the director of the Manhattan </span>Project<span> </span>