import random
class samochod:
    max_speed = ""
    naped = ""
    max_przyspieszenie =""
    pojemnosc_zbiornika= ""

    def paliwo(self):
        if random.randint(0,50) > 50 and random.randint(0,50) < 0:
            self.pojemnosc_zbiornika -= 1

    def wyswietl(self):
        print(self.pojemnosc_zbiornika)
samochod1 = samochod()

samochod1.naped = "4 koła"
samochod1.max_przyspieszenie = 120
samochod1.max_speed = 250
samochod1.pojemnosc_zbiornika = 50

samochod1.wyswietl()

