FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
greyatom-python-for-data-science/python/code.py at master · Coderash1998/greyatom-python-for-data-science · GitHub
Coderash1998
/
greyatom-python-for-data-science
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
0
Code
Issues
0
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
greyatom-python-for-data-science
/
python
/
code.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
50 lines (36 loc) · 1.04 KB
Breadcrumbs
greyatom-python-for-data-science
/
python
/
code.py
Copy path
File metadata and controls
50 lines (36 loc) · 1.04 KB
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
45
46
47
48
# --------------
# Code starts here
class_1
=
[
'Geoffrey Hinton'
,
'Andrew Ng'
,
'Sebastian Raschka'
,
'Yoshua Bengio'
]
class_2
=
[
'Hilary Mason'
,
'Carla Gentry'
,
'Corinna Cortes'
]
new_class
=
class_1
+
class_2
print
(
new_class
)
new_class
.
append
(
'Peter Warden'
)
print
(
new_class
)
new_class
.
remove
(
'Carla Gentry'
)
print
(
new_class
)
# Code ends here
# --------------
# Code starts here
courses
=
{
'Math'
:
65
,
'English'
:
70
,
'History'
:
80
,
'French'
:
70
,
'Science'
:
60
}
print
(
courses
)
total
=
sum
(
courses
.
values
())
print
(
total
)
percentage
=
(
total
/
500
)
*
100
print
(
percentage
)
# Code ends here
# --------------
# Code starts here
mathematics
=
{
'Geoffrey Hinton'
:
78
,
'Andrew Ng'
:
95
,
'Sebastian Raschka'
:
65
,
'Yoshua Benjio'
:
65
,
'Hilary Mason'
:
70
,
'Corinna Cortes'
:
66
,
'Peter Warden'
:
75
}
topper
=
max
(
mathematics
,
key
=
mathematics
.
get
)
print
(
topper
)
# Code ends here
# --------------
# Given string
topper
=
'andrew ng'
# Code starts here
first_name
,
last_name
=
topper
.
split
()
full_name
=
last_name
+
' '
+
first_name
certificate_name
=
full_name
.
upper
()
print
(
certificate_name
)
# Code ends here
Back
|
FazBrowse Home
|
New Git URL