Fahd's Computer Science Blog
Saturday, 22 November 2014
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.
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
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.
Subscribe to:
Posts (Atom)