Hi I'm new to python, I need a little help, i need to write a function that's has a radius parameter and retunes the circumference of the circle.

anyone that's able to help ?

sorry its not a lot of info to go on.

Recommended Answers

All 2 Replies

I suggest to read some beginners tutorial on functions.

Member Avatar for catintp

The fastest way to do this is to pick up a copy of Allen Downey's book Python for Software Design: How to Think Like a Computer Scientist. It is a very quick read, and I like the fact that he gets you started with writing bits of code quickly.

After the first couple of dozen pages, you should have enough information to install Python and easily write this function.

Have fun with it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.