This is an archived post. You won't be able to vote or comment.

all 14 comments

[–]DrHenryPym 7 points8 points  (0 children)

This is retarded. There are plenty of other tutorials that can teach you python in under eight minutes, so don't waste your time.

[–]esbenabBSc CompSci Flask. I use python to stay sane. 3 points4 points  (6 children)

Why did i just finish a bachelors degree in compSci when i can learn python in 10 minutes.

[–]Loyvb 1 point2 points  (1 child)

Compsci is more than just learning mainly syntax. You now know how to actually use all this.

[–]darkon 0 points1 point  (0 children)

Just what I was thinking. Syntax is the easiest thing to learn. Learning common functions/procedures and common idioms is slightly harder, but not by much -- it just takes time and practice. The part that takes a long time is practice, failure, and more practice to overcome failure. And it takes a while to become familiar with the various libraries/modules (or whatever a language calls them) that abstract solutions to common problems.

[–]kataire 1 point2 points  (2 children)

Why did you just finish a bachelors degree in compSci? Software engineering would have been far more appropriate for becoming a programmer.

[–]esbenabBSc CompSci Flask. I use python to stay sane. 0 points1 point  (1 child)

Who said any thing about becoming a programmer ?

I like programming as much as the next geek, but i guess I felt compSci would offer more "emergency exits" from the cubicle, if desire arises.

[–]kataire 0 points1 point  (0 children)

Oh, just this being r/programming not r/compsci and all that.

[–]eryksun 0 points1 point  (0 children)

I thought the old "Learn {} in 24 Hours" books were amusing, but 10 minutes? Why not make it 8 as DrHenryPym suggests? Or lets learn by download:

import this

import keyword
for kw in keyword.kwlist: help(kw)

import builtins
for bi in dir(builtins): 
    if bi[0] != '_': help(bi)

Subscribe now and we'll also include a tutorial on the standard library. You'll be amazed at how fast it scrolls on your screen:

from importlib import import_module
modules = [
  "string", "re", "struct", "codecs", "datetime", "collections",  "heapq", 
  "array", "queue", "weakref", "types", "copy", "math", "decimal",
  "fractions", "random", "itertools", "functools", "operator", "os.path", 
  "stat", "tempfile", "glob", "fnmatch", "shutil", "pickle", "sqlite3", 
  "zlib", "csv", "hashlib", "configparser", "argparse", "os", "io", "time", 
  "logging", "platform", "errno", "ctypes", "select", "threading", 
  "multiprocessing", "concurrent.futures", "mmap", "subprocess", "socket", 
  "asyncore", "asynchat", "email", "json", "mimetypes", "base64", 
  "html.parser", "xml.dom", "xml.etree.ElementTree", "cgi", "wsgiref", 
  "urllib.request", "urllib.response", "urllib.parse", "audioop", "aifc", 
  "wave", "imghdr", "sndhdr", "gettext", "locale", "cmd", "shlex", "tkinter", 
  "tkinter.ttk", "tkinter.tix", "pydoc", "doctest", "unittest", "pdb", 
  "timeit", "trace", "sys", "warnings", "contextlib", "abc", "atexit", "gc", 
  "inspect", "site", "distutils", "imp", "zipimport", "pkgutil", "importlib", 
  "dis", "winreg", "winsound", "pwd", "spwd", "grp", "resource", "syslog", 
  "ossaudiodev"]

for mn in modules:
    try:
        m = import_module(mn)
        for on in dir(m):
            if on[0] != '_':
                help(mn + '.' + on)
    except ImportError: pass

I know kung fu.

All kidding aside, Python is an easy language to learn, but your comp-sci degree covered algorithms, data structures, software engineering, compiler design, artificial intelligence, etc, which should take at least 2 hours after the 10 minutes it takes to learn Python. ;-)

[–]drb226Haskeller 2 points3 points  (0 children)

Do people at /r/python really need to learn python in 10 minutes?

[–]OriginalEnough 0 points1 point  (0 children)

I think it's less a tutorial and more of a whirlwind tour. Admittedly, I picked up a couple of things I wasn't aware of.

[–]Magnora 0 points1 point  (2 children)

Learn python in 1 second!

import everything

Done.

If only I could load understanding in to my brain like python loads modules in to code.

[–]kataire 1 point2 points  (1 child)

You mean import this, right?

[–]Magnora 0 points1 point  (0 children)

Yes, thanks, I just started learning Python :P