Top Comments
All Comments (16)
-
I love that you are doing this in python. While i don't use python myself i've been thinking about adding it as a script language, in my projects. So it's always nice to get a clear straightforward explanation about the language by my favorite teacher.
-
Can't find the whole computer science playlist on the khan academy website. where is it on the website?
-
OMFG FINALLY COMPUTER SCIENCE PLAYLIST!
-
@cilution this is more advance Sal is making it more robust so people understand better, but he forgot to mention what you said in your comment.
-
Hey Sal, the New Boston already does these tutorials. No need to waste your time teaching us programming when there's already someone who does it well.
-
@xxPwnedProductionsxx Who the fuck cares.
-
@xxPwnedProductionsxx you are
Though it is arguably less clear, you can put the last part of what Sal did in one line:
print(factorial(input("Enter a non-negative integer to take the factorial of:")))
Just remember that the inner-most function runs first, and the next function takes what the last one returned as its argument.
cilution 8 months ago 4
khan, what can't you do ? :)
aljoshabre 8 months ago 2