What Will Be The Output Of The Following Code Snippet?
self.x = 1
self.__y = 1
val.__y = 45
The program has an error because y is private and should not access it from outside the class.
The program has an error because you cannot name a variable using __y.
The code runs fine and prints 1.
The code executes successfully and prints 45.
© 2017 QuizBucket.org