Saturday, 22 November 2014

Love me Code!

This code was designed to see if someone likes you *Sigh. It uses commands like def (Define) and a variable to display certain things to the user. This is surprisingly interesting piece of code because of the infinite different ways to change this code to create other original ideas. 




Saturday, 1 November 2014

Dictionary!

The Following code can be used to either randomly select an option or specifically chose what selection be consistent.The code says that option "2" will be consistent which can be altered with  by changing the number on the third line which can be associated with the different selection of words available.   


Repeating with Range P2!

 When using the Code for i in range(?): You can repeat the words, numbers and letters underneath. In the code, The Symbol "?" represents the number you can input to have the code loop as many times as possible



Range In python-Words and repeats

In this piece of code, The command For "(Whatever word selected") in range(number of times to loop) Can be used to repeat things like Numbers and words. When placed under the keyword which in this case is "Elsa" The sentences written with the command print, will repeat based on the amount of times by the range command, Any number can be selected.


Monday, 20 October 2014

Dictionary in Python Part 2!


Dictionary In python!


This program created, was to store usernames and then will get printed on the name put in to the code print(usernames['Enter name Here']). This code will print what ever is taken down in the database of the written usernames.




Wednesday, 15 October 2014

Translator for Arabic!

This time in class, we learn How to make an Awesome translator to change English colours to colours in Arabic. This program uses the Commands: Elif, If and Else as well as While and Print. The programs main program and command used is choice which chose what comes up as the answer towards the users question.