Added
This commit is contained in:
18
Untitled.md
Normal file
18
Untitled.md
Normal file
@@ -0,0 +1,18 @@
|
||||
```python
|
||||
def fubar(n: int):
|
||||
if isinstance(n, float) or n < 1:
|
||||
return False
|
||||
|
||||
count = 1
|
||||
while count <= n:
|
||||
msg = count
|
||||
if count % 3 == 0:
|
||||
msg = "Foo"
|
||||
if count % 5 == 0:
|
||||
msg = "Bar"
|
||||
if count % 15 == 0:
|
||||
msg = "FooBar"
|
||||
|
||||
count += 1
|
||||
print(msg, end=', ')
|
||||
```
|
||||
Reference in New Issue
Block a user