R
Q. Study the following program:
1. class Std_Name: 2. def __init__(self, Std_firstName, Std_Phn, Std_lastName): 3. self.Std_firstName = Std_firstName 4. self. Std_PhnStd_Phn = Std_Phn 5. self. Std_lastNameStd_lastName = Std_lastName 6. 7. Std_firstName = “Wick” 8. name = Std_Name(Std_firstName, ‘F’, “Bob”) 9. Std_firstName = “Ann” 10. name.lastName = “Nick” 11. print(name.Std_firstName, name.Std_lastName)
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Write the output of the following :
Q. What will be the output of given Python code?
Q. A loop inside another loop is called ______
Q. Which arithmetic operators can we NOT use with strings?
Q. What will be the output of the following Python code?
Q. Which of the following is incorrect?
Q. Which function is used to read n bytes of information from a text file in python?
Q. What will be the result of the following expression in Python “2 ** 3 + 5 ** 2”?
Discusssion
Login to discuss.