Giter Club home page Giter Club logo

100-python's Introduction

100-python

If I get a job I'm up for, I'll have to learn python. May as well learn it now. So, one hundred things from python I'll probably want to know

I'll probably regret setting a number. Anyway I'm going to start with maybe 50 and add stuff as needed.

First some things I know already

  1. python files usually end with .py

  2. python is a dynamically typed interpreted (generally anyway) langage

  3. python avoids braces and semicolons and other punctuation, where possible

  4. a list in python is a tuple

  5. pip installs python packages

  6. python uses indentation for scope

  7. hash bang for python invocation from the shell #!/usr/bin/env python

  8. declarations if a variable (name = value )

  9. an integer (number without a decimal place)

  10. a floating point number (number with a decimal place)

  11. a string (" ", ' ' or """ around the string literal can use the print formatting to alter strings when assigning)

  12. an array (a list, declared like list = ['a', 2, 'cee']

  13. a character a single char string

  14. a hash (dictionary dic = {'a': 1, 'b': 2} )

  15. a tuple

  16. a constant

  17. a class (class)

  18. an object

  19. an import from a global library (import sys)

  20. an import from a local library

  21. loop (maybe go over an array)

  22. second type of loop (while loop)

  23. third type of loop (count loop)

  24. subroutine/function (def name(parameters):

  25. a static variable

  26. a global variable

  27. how to open a text file to read it

  28. how to open a text file to write it

  29. how to declare a package/library

  30. how to read a line from STDIN (raw_input(prompt))

  31. how to read a line from an opened file

  32. how to write a line to STDOUT (print) (note, can use , to chain elements in print, will evalue outside of commas %s for string %d for integer %item for one item or %(value1, value2) for more then one value)

  33. how to write a line to an opened file

  34. how to close a file

  35. how to do regex matching in python

  36. how to do substitution in python (a, b) = (b, a)

  37. array length (len(arrayname))

  38. how to do a single line comment (#)

  39. is a multi line comment different, and if so, (how? nope #)

  40. how to find out a substring

  41. how to search for a character, or a set of characters, in a string

  42. how to access an element in an array arrayname[index], can use negative numbers (-1 is end of array, -2 is 1 before end of array)

  43. how to sort an array array.sort(function to sort with)

  44. how to pull out keys from a dictionary (dict["key"])

  45. how to add to a hash (as above)

  46. how to delete a key from a hash (del dict["key"] dict.clear() to delete dictionary)

  47. how to have multiple scalars (or whatever the equivalent term is) in a hash value, array element, etc.

  48. how to do bit level manipulations (is it possible, and how).

  49. how to invoke shell commands

  50. how to get the output of shell commands, and how to get their exit status

  51. forking/threading, or equivalent

  52. what is the NULL/undef term

  53. what is true (True)

  54. what is false (False)

  55. Can I define things to be clearer, like in C?

  56. how to invoke the debugger

  57. How to cast to an integer/float form the opposite (int(float), ?)

100-python's People

Contributors

gryftir avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.