answersLogoWhite

0

try using a never ending looping statement

(I know that I need a while/for loop, but I don't know how to assign variables to a randomly generated string)

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

EzraEzra
Faith is not about having all the answers, but learning to ask the right questions.
Chat with Ezra
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
BeauBeau
You're doing better than you think!
Chat with Beau

Add your answer:

Earn +20 pts
Q: How can you create infinite instances of the same class using Python?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are factory methods in java?

A factory class is any class which is used to create instances of other classes. The methods which create those classes are the factory methods. For example, the BorderFactory class has a variety of methods for creating instances of the different types of the Border classes. BorderFactory.createEmptyBorder(); BorderFactory.createEtchedBorder(); ...


Is python a case sensitive language?

Yes. For instance, you can write: x=2 X='a string' If you now print each of these variables you will find that they have retained the values that you assigned to them. Very often programmers create classes with uppercase names then use the lowercase version of the same name for instances of the class. This is possible because Python is case sensitive.


What is need for static method?

Static methods are methods that can be invoked without creating an instance of the class that contains them. They are needed in cases where the programmer would not want to create multiple instances of a class to execute a method.


What is class variable?

Class Variables or Instances variables are variables that are declared inside a class and are available for the whole class. They are available for all instances of that class and are not specific to any method. Ex: public class Test { private String name = "Rocky"; } Here name is a class variable.


How you declare class scoped variables and member functions?

To scope class members to the class (rather than to instances of the class), declare them as static members of the class. Static members are accessible even when no instances of the class exist. As such, static member functions do not have access to a 'this' pointer, unlike ordinary (nonstatic) member functions.