Question: Write the complete class that is used by the following program on a blank page. The class will set, access, and compare a single student
Write the complete class that is used by the following program on a blank page. The class will set, access, and compare a single student name. Make sure to include every method that is in the larger, bold font.
def main:
me MyStudent
you MyStudent You
mesetName Me
print My name is megetName
print Your name is you.getName
if meequalsyou: #OR you can write the code for #if me you:
print We have the same name
else:
print We dont have the same name
main
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
