How would one do something like this in python
Mainstring:
Sub1
Sub2
Sub3
then call upon each of those values by defining a Mainstring StringNumberOne
and
StringNumberOne.Sub1 = ""
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First you define a class
MainString. In the__init__method (the constructor), you create the instance variables (Sub1, etc):Then you create an instance of the class. You can change the value of instance variables for that instance: