Skip to content

siegbenn/lpthw

Repository files navigation

Notes:
------- Print a string. -------

print ""

------- Comment a line. -------

#

------- Math symbols. -------

+ - / * % < > <= =>

------- Creating a variable. -------

variable_name = variable

------- Call a variable. -------

print "%d %s" % (decimal_var, string_var)

------- Print block -------

"""
text
text
"""
------- Prompting People.-------

variable_name = raw_input("prompt")

or

print "prompt"
variable_name = raw_input()

------- Import argv.-------

from sys import argv

-------File commands. -------

close
read
readline
truncate
write(stuff)

About

Learn Python The Hard Way

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages