-
Notifications
You must be signed in to change notification settings - Fork 0
/
ex2new.py
37 lines (19 loc) · 873 Bytes
/
ex2new.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
import logging
logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s- %(message)s')
logging.debug('Start of program')
def printSomeMore():
# 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.")
print('This will run too.')
toPrint="""Take your ex2.py file and review each line going backward. Start at the last line, and check each word in reverse against what you should have typed."""
print(toPrint)
def main():
printSomeMore()
if __name__ == '__main__':
main()
logging.debug('End of program')