Intro to Python Notes

By: markpepapa | Related Course: Intro to Python
Join Cybrary

Module 2 - Apprentice Python (Click to View Notes)

import operator #map function to a string sign_dict = {'+' : operator.add, '-' : operator.sub} x = 1 y = 2 #then we can call like this print sign_dict[sign](x,y) [view]

Join Cybrary

Our Revolution

We believe Cyber Security training should accessible for everyone, everywhere. Everyone deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is the world's largest community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

We recommend always using caution when following any link

Are you sure you want to continue?