Lesson
Break Continue For Loop A for loop is used for iterating over a sequence. It works more like an iterator method as found in other object-orientated programming languages. The for loop iterates […] For loop and Range For loop and Range with Step Create a Quiz String Positions Python String Indexes and Slices Random Choice Random Player Range Range of Weekdays Range(stop) There […] List 2. Values of a list can be a collection of mixed data types. For Eg. Months is a list of all the months. For loop Repeat for each value […] Assignment: Calculate Tax Conditions Simple if condition If Elif Else Condition While True Condition Output for Dice Rolls Guess a Random Number As simple as it sounds assignment operators are used for assigning values to variables. A variable is name given to a memory location ename = ‘Bob’ marks = 100 price = 9.99 paid = True Naming convention for variables: 1.Starts only with alphabet or _ (underscore: discarded) The truncating division operator (//, also known as floor division) truncates the result to an integer and works with both integers and floating-point numbers. Jupyter Notebook Google Colab Notebook Python IDE’s Download https://www.anaconda.com/download/. Introduction to Python Guido van Rossum found Python language and first released in 1991 Python is managed by the non-profit Python Software Foundation. […]