d = dict()
e = {}
f = []
g = dict{}
The statement g = dict{} is invalid because the dict() function should not include curly braces {} as an argument. The correct way to initialize an empty dictionary is g = dict() or g = {}. All other options correctly initialize dictionaries or lists.
Write a user-defined function in Python named showGrades(S) which takes the dictionary S as an argument. The dictionary S contains Name: [Eng, Math, Science] as key:value pairs.
The function displays the corresponding grade obtained by the students according to the following grading rules:
\[ \begin{array}{|c|c|} \hline \textbf{Average of Eng, Math, Science} & \textbf{Grade} \\ \hline \geq 90 & A \\ \hline < 90 \text{ but } \geq 60 & B \\ \hline < 60 & C \\ \hline \end{array} \]
Example: Consider the following dictionary: \[ S = \{\text{"AMIT"}: [92, 86, 64], \text{"NAGMA"}: [65, 42, 43], \text{"DAVID"}: [92, 90, 88]\} \] The output should be: \[ \text{AMIT} - B \\ \text{NAGMA} - C \\ \text{DAVID} - A \]
myStr[:4] extracts the first 4 characters, which are "MISS".myStr[-5:] extracts the last 5 characters, which are "SIPPI"."#" in between, resulting in "MISS#SIPPI".
event = "G20 Presidency@2023"
L = event.split(' ')
print(L[::-2])
Consider the following Python statement:
F = open('CONTENT.TXT')
Which of the following is an invalid statement in Python?

Standard electrode potential for \( \text{Sn}^{4+}/\text{Sn}^{2+} \) couple is +0.15 V and that for the \( \text{Cr}^{3+}/\text{Cr} \) couple is -0.74 V. The two couples in their standard states are connected to make a cell. The cell potential will be:
To calculate the cell potential (\( E^\circ_{\text{cell}} \)), we use the standard electrode potentials of the given redox couples.
Given data:
\( E^\circ_{\text{Sn}^{4+}/\text{Sn}^{2+}} = +0.15V \)
\( E^\circ_{\text{Cr}^{3+}/\text{Cr}} = -0.74V \)
A carpenter needs to make a wooden cuboidal box, closed from all sides, which has a square base and fixed volume. Since he is short of the paint required to paint the box on completion, he wants the surface area to be minimum.
On the basis of the above information, answer the following questions :
Find a relation between \( x \) and \( y \) such that the surface area \( S \) is minimum.