[Python #1] create ex2
This commit is contained in:
parent
79a3c80eed
commit
2505a9e78c
3 changed files with 31 additions and 0 deletions
9
kjg/python-the-hard-way/e2.py
Normal file
9
kjg/python-the-hard-way/e2.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
# A comment, this is so you can read your program later.
|
||||
# Anything after the # is ignored by python.
|
||||
|
||||
print("I could have code like this.") # and the comment after is ignored
|
||||
|
||||
# You can also use a comment to "disable" or comment out code:
|
||||
# print("This won't run.")
|
||||
|
||||
print("This will run.")
|
|
@ -17,3 +17,6 @@ This is fun.
|
|||
Yay! Printing.
|
||||
I'd much rather you 'not'.
|
||||
I "said" do not touch this.
|
||||
**** ex2
|
||||
I could have code like this.
|
||||
This will run.
|
||||
|
|
19
kjg/python.org~
Normal file
19
kjg/python.org~
Normal file
|
@ -0,0 +1,19 @@
|
|||
*python
|
||||
|
||||
*** Python #1:
|
||||
**** ex0
|
||||
**** ex1
|
||||
>>> print("Hello World!")
|
||||
... print("Hello Again")
|
||||
... print("I like typing this.")
|
||||
... print("This is fun.")
|
||||
... print('Yay! Printing.')
|
||||
... print("I'd much rather you 'not'.")
|
||||
... print('I "said" do not touch this.')
|
||||
Hello World!
|
||||
Hello Again
|
||||
I like typing this.
|
||||
This is fun.
|
||||
Yay! Printing.
|
||||
I'd much rather you 'not'.
|
||||
I "said" do not touch this.
|
Loading…
Reference in a new issue