This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# First of all, don't forget that lines (like this one) starting with | |
# the pound sign/hashtag are called "comments". We use them like I am | |
# here -- to help explain your code to other humans. All of these | |
# comment lines are ignored when your program is interpreted (run). | |
# They are ignored by the computer. | |
# Remember what the keyword "import" is doing here. | |
# And remember the term: identifier. "random" is an identifier for the | |
# imported library | |
import random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mad Libs! | |
print("Type in an adjective") | |
adj = raw_input() | |
print("Type in a noun") | |
noun1 = raw_input() | |
print("Type in another noun") | |
noun2 = raw_input() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Here, I am importing the sound library | |
import sound | |
# Here, I am importing the time library | |
# | |
# | |
import time | |
# This is my function | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import ui | |
import shelve | |
# Setting up variables for the views (in lieu of using the NavigationView) | |
item_db = None | |
add_item = None | |
show_item = None | |
search_items = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import ui | |
import shelve | |
# Setting up variables for the views (in lieu of using the NavigationView) | |
item_db = None | |
add_item = None | |
show_item = None |
NewerOlder