Wednesday, 5 November 2014

Dictionary vs. List


This screen-caption here shows a series of different dictionaries where 2 types of data is stored: integers and strings. A dictionary is just like a list, except that it stores key-values instead of items. These key-values can be used to then extract whatever you would need from that dictionary. 

Loop Basics


List basics




Elf and Dragon


Wednesday, 15 October 2014

Arabic to English Translator Code

The purpose of this code is to translate certain Arabic phrases into English.
To elaborate on how this code works, i'll go through with it line by line.
Right at the top of the code it says (restart="Yes" or "yes"). "restart" allows the code to be re-run in the python console after all of it has been run-through once, and it accepts "Yes" or "yes" as true answers. 
(choice=input ...) is a basic variable that will be used through out this code.
The rest of this translator is a series of if , elif, and else statements using the "choice" variable that was assigned. 

Monday, 29 September 2014

Monday, 22 September 2014

Testing Siri

one thing i have to remember is that a Hashtag is typed before a statement that is meant for the computer to ignore
and I also made a friend. He thinks my name is Hugh.

Saturday, 20 September 2014

Loop basics #2


today in this lesson we had to display  abilility to use loops