FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Source-Code-from-Tutorials/Python/18_python.py at master · sofitech05/Source-Code-from-Tutorials · GitHub
sofitech05
/
Source-Code-from-Tutorials
Public
forked from
buckyroberts/Source-Code-from-Tutorials
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Source-Code-from-Tutorials
/
Python
/
18_python.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
8 lines (6 loc) · 253 Bytes
Breadcrumbs
Source-Code-from-Tutorials
/
Python
/
18_python.py
Copy path
File metadata and controls
8 lines (6 loc) · 253 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
def
health_calculator
(
age
,
apples_ate
,
cigs_smoked
):
answer
=
(
100
-
age
)
+
(
apples_ate
*
3.5
)
-
(
cigs_smoked
*
2
)
print
(
answer
)
buckys_data
=
[
27
,
20
,
0
]
health_calculator
(
buckys_data
[
0
],
buckys_data
[
1
],
buckys_data
[
2
])
health_calculator
(
*
buckys_data
)
Back
|
FazBrowse Home
|
New Git URL