Advertisement
JkSoftware

Day 17 - Class Example

Nov 26th, 2021
1,107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. class Car:
  2.     def __init__(self, seats):
  3.         self.seats = seats
  4.         print(f'Car has {seats} seats')
  5.  
  6.  
  7. my_car = Car(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement