Answer:
c. let v = silo.volume();
Explanation:
When you create and initialize a new object you pass through that object's class constructor. The constructor is in charge of initializing all the necessary variables for that class including radius and height. Once you save the object in a specific variable (silo) you need to call the class methods through that variable, using the '.' command. Therefore, in this scenario, in order to call the volume() method you would need to call it from the silo object and save it to the v variable, using the following statement.
let v = silo.volume();
user_in = str ( input ("Please enter a phrase: " ))
def reverse_str (string):
e = 0
for e in range (len (string)):
x = -1
print string[x]
x += (len (string))
Answer:
The correct answer is A) "red"
Explanation:
Using arrays and lists are very helpful when writing programs. They help simplify programs by storing <u>related data</u> under one name.
In the question above the general name is <u>myList</u>. <em>The related data are red, orange, yellow, green, blue, indigo, and violet.</em>
This means that myList contains values a,b,c,d,e,f, and g. However myList[1] only contains value "red".
Cheers!
Microsoft.././/.//././././././.