Skip to content

Commit 94155c7

Browse files
authored
Add files via upload
1 parent 12a2f97 commit 94155c7

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed

bool.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
a=True
2+
print(a)
3+
type(a)
4+
# >>> x=3+5i
5+
# File "<stdin>", line 1
6+
# x=3+5i
7+
# ^
8+
# SyntaxError: invalid decimal literal
9+
# >>> x=3+5j
10+
# >>> type(x)
11+
# <class 'complex'>
12+
# >>> y=3+5i
13+
# File "<stdin>", line 1
14+
# y=3+5i
15+
# ^
16+
# SyntaxError: invalid decimal literal
17+
# >>> a=1.22+5.66j
18+
# >>> a
19+
# (1.22+5.66j)
20+
# >>> b=complex(12,45)
21+
# >>> b
22+
# (12+45j)
23+
# >>> a=1.2+5.3j
24+
# >>> a
25+
# (1.2+5.3j)
26+
# >>> a.imag
27+
# 5.3
28+
# >>>

flooting.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# float
2+
x=565.565
3+
# decimal number
4+
b=-1545E-2
5+
print(b)
6+
c=0.2548E2
7+
print(c)
8+
print(c.__sizeof__())
9+
print(x.__sizeof__())

literals.py

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
price=input("Enter the price of the product: ")
2+
mony=input("Enter the money you have: ")
3+
total=(price+mony)
4+
print("The total amount is: ",total)
5+
price=145454
6+
7+
8+
# price=145454 this value is contsant and it is called as literals

numaricdata.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
x=3214165411356416546446545445465464165454548648465784658544685454
2+
print(x)
3+
print(x.__sizeof__())
4+
5+
x=354656566566469656+59+565656565666666666666666666666666666666666666666666666666666
6+
y=-45
7+
print(x.__sizeof__())
8+
print(y.__sizeof__())
9+
10+
# x=565966 immutable it prefure to create ne as compare to modify the existing one #immutable
11+
x=655655
12+
print (x)
13+
14+

vari_zbncksjbv.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
priceitem=45
3+
_x=15
4+
# while=45 #i shud no use is reserved words
5+
a=25
6+
A=48
7+
print(a)
8+
print(A)
9+
print(priceitem)

0 commit comments

Comments
 (0)