DEV Community

Discussion on: Creating and Instantiating a simple class in python

Collapse
 
eissah_nassir profile image
Ei-ssah

am writing a simple program where i want the userInput to be the instance of my class but i have failed to do so for example

name = input("Enter your name")

name = SomeClass(name)

so i can be able to perform some methods on it