

Coding Challenges in Python by Brian Spiering
0.20MB. 0 audio & 5 images. Updated 2018-10-17.
The author has shared 10 other
item(s).
Description
Sample (from 268 notes)
Cards are customizable!
When this deck is imported into the desktop program, cards will appear
as
the deck author has made them. If you'd like to customize what appears
on
the front and back of a card, you can do so by clicking the Edit
button, and
then clicking the Cards button.
Front | Write a recursive factorial fucntion |
Back | def factorialR(n): "Recursive factorial function" return 1 if n <= 1 else n * factorialR(n-1) |
Tags |
Front | Read a file from internet / website |
Back | from urllib import requesturl = 'https://www.wolframcloud.com/objects/fd2da57e-2af0-4114-9d08-f45c062389d4' text = request.urlopen(url).read().decode("utf8") # NOTE: Convert from bytes to str |
Tags |
Front | write an interactive loop that prints input until stop |
Back | while True: reply = raw_input('Enter text: ') if reply == 'stop': break print(reply.strip()) |
Tags |
After the file is downloaded, double-click on it to open it in the desktop program.
At this time, it is not possible to add shared decks directly to your AnkiWeb account - they need to be added from the desktop then synchronized to AnkiWeb.
Reviews

good stuff

Thanks!

Useful for begginers like me. Thanks

Nice

Thank you so much !

fabulous study tools

Good set of challenges, ranging from basics to advanced topics. Including simple functions and complex functions.

It's helpful having coding challenges as an Anki deck.

thanks