Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0f8e1fa

Browse files
author
Rai Muhammad Haider
committed
Numbers
1 parent 5ea360a commit 0f8e1fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎Numbers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
boss = [1,2,3,4]
5757
ok_boss = [1,2,3,4]
5858
print(boss is ok_boss) # it is giving false becase the seprate object list is created in the memory
59+
print( boss is not ok_boss) # is not is use to clearify it is not same in object its result is also in boolean form
5960
boss[0] = 55
6061
print(ok_boss is boss) # it is giving as false value because the value of boss list is changed but the ok_boss still have old one
6162
print(math.floor(3.9)) # floor will give the lower bound value output 3

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /