python bug

Solutions on MaxInterview for python bug by the best coders in the world

showing results for - "python bug"
Rodrigo
08 Oct 2016
1#this is a small bug for beginners
2first = [1, 2, 3, 4, 5]
3
4print(first)
5second = first
6print(second)
7second.append(6)
8print(second)
9print(first)
10
11if first == second :
12    print("bug! you will get hacked!")
similar questions
queries leading to this page
python bug