FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
materials-RealPython/chatgpt-unit-tests-python/fizzbuzz.py at master · ph3ll3r/materials-RealPython · GitHub
ph3ll3r
materials-RealPython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
materials-RealPython
/
chatgpt-unit-tests-python
/
fizzbuzz.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (9 loc) · 202 Bytes
Breadcrumbs
materials-RealPython
/
chatgpt-unit-tests-python
/
fizzbuzz.py
Copy path
File metadata and controls
9 lines (9 loc) · 202 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
def
fizzbuzz
(
number
):
if
number
%
15
==
0
:
return
"fizz buzz"
elif
number
%
3
==
0
:
return
"fizz"
elif
number
%
5
==
0
:
return
"buzz"
else
:
return
number
Back
|
FazBrowse Home
|
New Git URL