+ 1

How do I turn my code into a program? #Python

I have a code that functions within the playground, but I would like it to "look pretty" like a pop up that asks the questions...kind of like a calculator type look, where the actual code is not visible to the user. Where can I find tutorials or guidance to create this type of program? Here is the code as it stands today: #SHORT TERM CALCULATOR by CARLEE GONZALES rate_of_pay = (input("What is the partners rate of pay?

quot;)) partnershare_factor = input("Is Partner eligible for PartnerShare? Y/N") #SALARY CALCULATIONS 100% 5 DAY WORK WEEK salary_weekly = float(rate_of_pay)*40 salary_daily = salary_weekly/5 #HOURLY CALCULATION 66.67% 7 DAY WORK WEEK hourly_cal = float(rate_of_pay)*40 hourly_weekly = hourly_cal*.6667 hourly_daily = hourly_weekly/7 if partnershare_factor == 'Y': print("\n") print(f'Weekly = $ {salary_weekly:>7.2f}') print(f'Daily = $ {salary_daily:>7.2f}') else: print("\n") print(f'Weekly = $ {hourly_weekly:>7.2f}') print(f'Daily = ${hourly_daily:>7.2f}')

2nd Jul 2019, 1:24 PM
Carlee Gonzales
Carlee Gonzales - avatar
1 ответ
0
Easy! Use any IDE like the Python 3.6 one or the other stuff like PyDroid3 on Android or PyCharm on PC! :) Good luck coding!
22nd Jul 2019, 9:53 AM
mime
mime - avatar