years = int(input("Enter the # of years: "))
print("You are "+str(years*365)+" days old")
I wrote the code in python 3.8. I hope this helps!
OPTION A would be the answer
I want to start playing!! it seems super cool, don’t know much ab it but i like paimon lol
Its temporary name, which is being used as a placeholder, is ununpentium. Element 115<span> is one of a number of super heavy </span>elements—elements<span> with an atomic number greater than 104—that are so short-lived, they can't be detected in nature. ... Creation of </span>element 115<span> during a particle collision of americium and calcium atoms</span>.
Answer:
Option a. int max = aList.get(0); for (int count = 1; count < aList.size(); count++) { if (aList.get(count) > max) { max = aList.get(count); } }
is the correct code snippet.
Explanation:
Following is given the explanation for the code snippet to find largest value in an integer array list aList.
- From the array list aList, very first element having index 0 will be stored in the variable max (having data type int).
- By using for starting from count =1 to count = size of array (aList), we will compare each element of the array with first element of the array.
- If any of the checked element get greater from the first element, it gets replaced in the variable max and the count is increased by 1 so that the next element may be checked.
- When the loop will end, the variable max will have the greatest value from the array aList.
i hope it will help you!