This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? ')) |