Commit a61e8bd4 authored by Nathan's avatar Nathan 🚴

Merge remote-tracking branch 'talks-demos/master'

parents a15037db 3982e1ab
This diff is collapsed.
## Here are some of the resources I mentioned in the talk:
- [Python Boilerplate]( super helpful for getting setup with your Python projects.
- [PyCharm]( Community Edition is a great way to get better at your Python
def custom_number_rounding(number):
""" Takes in a number and separates out the whole and the fraction, and
returns a custom rounded value.
assert type(number) in [int, float]
except AssertionError:
return False, 0
if number == 0:
return True, 0
frac, whole = math.modf(number)
if frac >= 0.8:
number = int(whole) + 1
elif frac < 0.8:
number = int(whole)
return True, number
# talks
Meetup talks
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment