FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python-core/basic/declaration.py at master · Prabhakar-Naik/python-core · GitHub
Prabhakar-Naik
/
python-core
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
2
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python-core
/
basic
/
declaration.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
45 lines (35 loc) · 710 Bytes
Breadcrumbs
python-core
/
basic
/
declaration.py
Copy path
File metadata and controls
45 lines (35 loc) · 710 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# naming formate must follow mean
# string str
name
=
"prabhakar"
print
(
name
)
# number int
count
=
20
print
(
count
)
# decimal float
salary
=
20000.4
print
(
salary
)
# list of data
list
=
[
1
,
2
,
3
,
4
,
5
,
6
]
print
(
list
)
# tuble of data
tuple
=
(
10
,
20
,
30
,
40
,
50
,
60
)
print
(
tuple
)
# dictionary stores key value pair
dictionary
=
{
"key"
:
"value"
,
"name"
:
"prabha"
,
"score"
:
200
}
print
(
dictionary
)
print
(
dictionary
.
get
(
"key"
))
print
(
dictionary
.
values
())
print
(
dictionary
.
keys
())
print
(
dictionary
.
items
())
print
(
dictionary
.
setdefault
(
"name"
))
print
(
dictionary
)
# set of data
set
=
set
()
set
.
add
(
"prabha"
)
set
.
add
(
3
)
set
.
add
(
13
)
set
.
add
(
"harsha"
)
set
.
add
(
23
)
set
.
add
(
33
)
print
(
set
)
# set not accepted list and tuple inside
Back
|
FazBrowse Home
|
New Git URL