[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Is Python a good language to learn about recursion in?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 21
Thread images: 5

File: python-logo-3.6.gif (28KB, 800x480px) Image search: [Google]
python-logo-3.6.gif
28KB, 800x480px
Is Python a good language to learn about recursion in?
>>
>>60028401
Is Python a good language to learn about recursion in?
>>
File: IMG_3167.jpg (49KB, 1242x745px) Image search: [Google]
IMG_3167.jpg
49KB, 1242x745px
>>60028401
Is Python a good language to learn about recursion in?
>>
File: 60028401.jpg (27KB, 879x239px) Image search: [Google]
60028401.jpg
27KB, 879x239px
>>
File: IMG_3168.jpg (91KB, 1242x617px) Image search: [Google]
IMG_3168.jpg
91KB, 1242x617px
>>60028462
>>
You don't need any programming language to understand recursion.
>>
Step 1 have a base case
Step 2 have the function call on itself
Congrats you understand rcursion
>>
I love python. Super basic and easy to understand.
>>
File: recursion.png (290KB, 1298x719px) Image search: [Google]
recursion.png
290KB, 1298x719px
>>60028535
>>
>>60028401
absolutely
>>
probably one of the worst.

just install ocaml faggot.
>>
I'd recommend a language that will do TCO for learning about recursion. If you do any sort of recursion in python it's pretty easy to blow through your stack. You can adjust your stack size if you like but that's the sort of nitty gritty detail that someone just starting out doesn't need to know.
>>
>>60028401

High school maths is also a good place to learn about recursion.
>>
recursion is dumb
>>
It should only take a few minutes for an adult to learn recursion in the abstract sense. If you are looking to practice using recursive algorithms, try clojure.
>>
>>60029668
Algorithms, 4th edition uses Java, so you might wanna try using that.
>>
>>60029721
>>60029668
>>60028401

woops meant OP
>>
>>60029119
Python is still missing TCO, so no it's actually a horrible language to use recursion in.

>>60029292
>recursion is dumb
Found the idiot.
>>
>>60028401
No. Try SML or OCaml.
>>
>>60028401
unironically, no, python is TERRIBLE for recursion.

It doesn't even have tail call elimination
>>
>>60028426
>>60028428
>>60028462
>>60028535
>>60028719

that's not recursion at all though
Thread posts: 21
Thread images: 5


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.