Created
September 20, 2020 18:48
-
-
Save jamilnoyda/ba08592bc0d970c3ee0907ee6c4a0bb7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a,b,c =1,2,3 | |
# print(a) if a>b else print(b) if (b>c) else print(c) | |
# l =[x for x in range(0,10,14)] | |
# print(l) | |
# a=1 | |
# a=[1,2,3] | |
# b = a | |
# a.append('b') | |
# b.append(5) | |
# print("done") if (a==b) else print("nnot done") | |
# print("done") if (a is b) else print("nnot done") | |
# print(a) | |
# print(b) | |
a=[1,2,3] | |
b = a | |
a.append('b') | |
def name(b=[]): | |
b.append(5) | |
print("done") if (a==b) else print("nnot done") | |
print("done") if (a is b) else print("nnot done") | |
print(a) | |
print(b) | |
name() | |
a=[1,2,3] | |
b = a | |
a.append('b') | |
def name(b=[]): | |
b.append(5) | |
print("done") if (a==b) else print("nnot done") | |
print("done") if (a is b) else print("nnot done") | |
print(a) | |
print(b) | |
name() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment