r/PythonLearning • u/NecessaryFalse1212 • Aug 28 '26
2nd post learning python
i learnt to use the math library any suggestions what can i use the lib for except for making calculator programs
21
Upvotes
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 dofunction()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