Skip to content

Instantly share code, notes, and snippets.

@NateAllCodey
NateAllCodey / Calculator#2(WIP).py
Created February 9, 2018 16:24
Python Trig Calculator (I need Help)
import math
import random
def askForNumInput(textPrompt):
# Devine local variable
convertedNum = math.nan
# Wait for valid numerical input
while True:
num = input(textPrompt)
try: