Monthly Archives: March 2015

Mastery15 – Conditional If

the conditional if es used whe you want something to happen only when a a certain condition is met. like comparing two variables and if they are equal the the program will follow the contition.

x = input()

y = input()

if x == y:

    print (“it is the same”)

 

#TC1017 #Mastery01

  1. Ability to create C++ file and run from command line

Watch it !!!! 😀   I will shw you how to run your code from your terminal :D!!!!!!! 

https://www.dropbox.com/s/rig7s4thtaewh8v/Mastery%2001.mov?dl=0

 

#MASTERY04

Hello !! here is my video of how to upload a file in github 😀 !! 

https://www.youtube.com/watch?v=6Zc6UIWECBI&feature=youtu.be

Creation and use of dictionaries in Python

A dictionary is another type of container in Python, like lists and tuples, but this one has elements in pairs, these are called items, each key is separated from it’s value by a colon, each item is separated by commas and the dictionary is enclosed with {}.

To update a specific item in the dictionary, you type the name of the dictionary, after that the name of the item inside brackets and (”), then equaling this to the value you want to update it to.

The same goes for adding another item to the list, follows the same process and syntaxes.

Finally, to print the dictionary you just put it after the print function with parenthesis. In case you want to print only a specific item you need to type the name of the dictionary then the item you want to print, of course in this form [‘item’], and the whole thing goes between parenthesis as well.

Here’s an example:

Creation and use of dictionaries in Python

Creation and use of dictionaries in Python

#MASTERY24

Hi !!! here is my video of how to use a simple array in c++

https://www.youtube.com/watch?v=a4ja5QBLBnI&feature=youtu.be

#MASTERY21

Hello !! here is my video of how to use recursive functions 😀 !!!

https://www.youtube.com/watch?v=yrGqstPu3Pk&feature=youtu.be

#MASTERY07

Hello !! here is my video of how to use comments in c++ 😀 :D!!

https://www.youtube.com/watch?v=Srs1CWKAijo&feature=youtu.be

#MASTERY11

Hi ! here is my video of how to call a function in c++

https://www.youtube.com/watch?v=M0H2oMaKTJw&feature=youtu.be

#MASTERY12

Hello here is video of how to create a function in c++

https://www.youtube.com/watch?v=TQSwNEoutEE&feature=youtu.be

#MASTERY17

HI !! Here is a video of how to use switch case in c++

https://www.youtube.com/watch?v=B631W55VPGI&feature=youtu.be