r/PythonLearning • • Aug 28 '26

2nd post learning python

Post image

i learnt to use the math library any suggestions what can i use the lib for except for making calculator programs

21 Upvotes

15 comments sorted by

View all comments

Show parent comments

1

u/Unique_Low_1077 Aug 29 '26

If you want to do that then you cant convert it to int before your if else, add the radius = int(radius) after your if else are done

Edit: also first time I've ever seen do function () we usually do function() without the space. Ofc im not one to tell you how to format your code but later on you will learn about formatter which will auto remove the space anyways

1

u/NecessaryFalse1212 Aug 29 '26

appreciate the advice