Skip to content

Commit f60c080

Browse files
author
Pc
committed
intro completed
1 parent 80d2be1 commit f60c080

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

intro/.DS_Store

6 KB
Binary file not shown.

intro/IntroMemory.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
x=10
2+
print("Memory Address of X = ",id(x))
3+
y=x
4+
print("Memory Address of Y = ",id(y))
5+
6+
if id(x)== id(y):
7+
print("X and Y have same memory location")
8+
9+
x=11
10+
print("After x=11 , Memory Address of X = ",id(x))
11+
12+
if id(x)==id(y):
13+
pass
14+
else:
15+
print("X and Y have Different memory Location")
16+
17+
z=10
18+
print("Memory Address of Z = ",id(z))
19+
20+
if id(z)==id(y):
21+
print("Python is Dynamically Typed Language")

intro/Pyprog2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Pyprog
2+
3+
print("NewFile")

intro/SampleFile.py

Whitespace-only changes.
252 Bytes
Binary file not shown.

intro/a.out

8.23 KB
Binary file not shown.

0 commit comments

Comments
 (0)