Skip to content

Instantly share code, notes, and snippets.

View misaelbg's full-sized avatar
🎯
Focusing

Misael borges misaelbg

🎯
Focusing
  • Brazil
View GitHub Profile
@misaelbg
misaelbg / main.py
Created November 21, 2024 13:08
Payment Challenge Code
"""
Questions:
1. Complete the `MiniVenmo.create_user()` method to allow our application to create new users.
2. Complete the `User.pay()` method to allow users to pay each other. Consider the following: if user A is paying user B, user's A balance should be used if there's enough balance to cover the whole payment, if not, user's A credit card should be charged instead.
3. Venmo has the Feed functionality, that shows the payments that users have been doing in the app. If Bobby paid Carol $5, and then Carol paid Bobby $15, it should look something like this