forked from tdwojak/Python2017
24 lines
556 B
Python
24 lines
556 B
Python
#!/usr/bin/env python2
|
|
# -*- coding: utf-8 -*-
|
|
|
|
lista = [1,2,3,4,5]
|
|
print("lista ma id: {}".format(id(lista)))
|
|
lista *= 10
|
|
lista.append(6)
|
|
print("lista ma id: {}".format(id(lista)))
|
|
lista.pop(2)
|
|
print("lista ma id: {}".format(id(lista)))
|
|
|
|
|
|
lancuch = "a string"
|
|
print("lancuch ma id: {}".format(id(lancuch)))
|
|
lancuch.capitalize()
|
|
print("lancuch ma id: {}".format(id(lancuch)))
|
|
lancuch += "!"
|
|
print("lancuch ma id: {}".format(id(lancuch)))
|
|
|
|
liczba = 5.2
|
|
print("liczba ma id: {}".format(id(liczba)))
|
|
liczba += 2.3
|
|
print("liczba ma id: {}".format(id(liczba)))
|