Funkcja liczby w Pythonie
>>> sentence = 'Mary had a little lamb'
>>> sentence.count('a')
4
Long Loris
>>> sentence = 'Mary had a little lamb'
>>> sentence.count('a')
4
def my_function():
print("Hello from a function")
import time
cando = True
number = 10
while cando:
print(number)
number = number - 1
time.sleep(1)
if number == 0:
cando = False