Skip to content

Instantly share code, notes, and snippets.

View claudchereji's full-sized avatar

Claudiu Chereji claudchereji

View GitHub Profile
@claudchereji
claudchereji / 3_averages.py
Created May 31, 2020 05:35
temp_converter.py
first = eval(input('Enter a number here: '))
second = eval(input('Another one here: '))
third = eval(input('Just one more, I promise: '))
total = first+second+third
average = first+second+third/3
print('The total sum of the 3 numbers is: ', total)
@claudchereji
claudchereji / tip_calc.py
Created May 31, 2020 05:32
tip_calc.py
import appex, ui
import console
import os
label = ui.Label(font=('Menlo', 24), alignment=ui.ALIGN_CENTER)
label.text = 'Tip Calc: '
appex.set_widget_view(label)
meal_price = eval(input('How much did you pay for the meal? '))