PYTHON PROGRAMMING Write a class called Person with a constructor that takes two arguments, name and age and the saves these as attributes Write a method in this called print_person that prints out...


PYTHON PROGRAMMING



  • Write a class called Person with a constructor that takes two arguments,
    name
    and
    age
    and the saves these as attributes

  • Write a method in this called
    print_person
    that prints out this information the console

  • Confirm that you did it properly by instantiating an object called
    p1
    and calling the method on the object.

  • Lastly, extend the constructor by adding functionality that checks the input name only contains letters (no numbers allowed).



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here