What Will Be The Output Of The Following Code Snippet?
self.x = 1
self.__y = 1
val = Test()
The program has an error because x is private and cannot be accessed outside of the class.
The program has an error because you cannot name a variable using .
The program runs fine and prints 1.
The program runs fine and prints nothing.
© 2017 QuizBucket.org