Python
ThuwarahanNant1 (0)

I tried to make a 'calculator' to help with my GCSE Astronomy course at school. I have got it to work but I think that there should be an easier way to carry this out without using lots of lines of code. So far, I have made it so that each calculation is carried out with a function that takes certain parameters that are inputted by the user. Then, all the different calculations are outputted on the terminal and the user enters the corresponding number. Each function is assigned a number and is then carried out.
I really want to know how I can make the code more efficient and readable and whether any of the calculations are incorrect. Please help!!

You are viewing a single comment. View All
Answered by malvoliothegood (148) [earned 5 cycles]
View Answer
ThuwarahanNant1 (0)

@malvoliothegood Thank you so much. I really appreciate it. Also, is there a way to keep repeating the instruction and menu functions until the user enters something like "quit"?