Advertisement
JkSoftware

Day 17 - Class Example

Nov 26th, 2021
1,001
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement