You need to actually instantiate a User
object not just a tuple
. Try
user1 = User("Krish","Patel",100, 200)
user2 = User("Bob","Smith",2032, 153)
More Related Contents:
- Why is sudo not accepting my sudo password? [closed]
- isolate data from a string
- Lambda in a loop [duplicate]
- Should I put #! (shebang) in Python scripts, and what form should it take?
- Python try…except comma vs ‘as’ in except
- Passing values in Python [duplicate]
- Two versions of python on linux. how to make 2.7 the default
- “Too many values to unpack” Exception
- What is the purpose of __str__ and __repr__? [duplicate]
- How to send cookies in a post request with the Python Requests library?
- How to source virtualenv activate in a Bash script
- How to pass a user defined argument in scrapy spider
- How to split by commas that are not within parentheses?
- Why not generate the secret key every time Flask starts?
- Python – Download Images from google Image search?
- Does `anaconda` create a separate PYTHONPATH variable for each new environment?
- What are the differences between Perl, Python, AWK and sed? [closed]
- how to perform max/mean pooling on a 2d array using numpy
- How to select a directory and store the location using tkinter in Python
- String similarity with Python + Sqlite (Levenshtein distance / edit distance)
- Sort a list of tuples depending on two elements [duplicate]
- python exception message capturing
- Silent printing of a PDF in Python
- How does the order of mixins affect the derived class?
- How to include and install local dependencies in setup.py in Python?
- How do I INSERT INTO t1 (SELECT * FROM t2) in SQLAlchemy?
- Understanding change-making algorithm
- Stratified Sampling in Pandas
- Is .ix() always better than .loc() and .iloc() since it is faster and supports integer and label access?
- Can sys.argv handle optional arguments? [duplicate]