<h3>Answer(:</h3>
•concatenation
• scanning
• substringing
• translation
• verification
<h3>if you want to remember means csstv;-)</h3>
Answer:
The memory with variable names str1, str2, and str3 all have equal and the same value after the first if-statement.
Explanation:
The str1 was first assigned a null value while the str2 and str3 were assigned the string value "Karen" with the String class and directly respectively. On the first if-statement, the condition checks if the str1 is null and assigns the value of the variable str2 to str1, then the other conditional statement compares the values of all the string variables.
Answer:
G = 6.673e-11
M = 5.98e24
accel_gravity = 0.0
dist_center = float(input())
accel_gravity = (G * M) / (dist_center * dist_center)
print('Acceleration of gravity: {: .2f}'.format(accel_gravity))
Explanation:
The G, M, and accel_gravity are already initialized
The user is asked to enter the dist_center which is the only missing thing in the formula
In order to calculate the accel_gravity, you just need to put the variables in the formula (Note that the formula is (G*M)/(d^2), not d)
Then, the calculated value of accel_gravity is printed