Ken Pythonic

Tuesday, August 6, 2019

nonlocal keyword

›
The nonlocal keyword is used to allow an inner function to access variables defined in an outer function. Without using the nonlocal keywo...
Monday, August 5, 2019

Importing Global Variables in Python

›
Global variables in python are actually considered module level variables or module attributes  and are not attached to a global namespace. ...
1 comment:
Wednesday, July 3, 2019

Python lambda

›
A lambda function in python allows you to write a reusable expression. Unlike saving the result of an expression in a variable the expressio...
1 comment:

Example - global keyword

›
You can declare a global variable in python easily enough but when you try to change it from a function no error is displayed and the old va...
Sunday, June 30, 2019

The for in Loop In Python

›
One of the strongest features, in my opinion, that Python has is its ability to work with sequences. Sequences are ranges, lists, tuples, se...
1 comment:

if, if..else, if..elif..else

›
When you need to execute code if and only if a certain condition is met then you can use the if statement . If statements can be very simpl...
Saturday, June 29, 2019

Python Conditional Expressions

›
Python supports conditional expressions. Conditional expressions allow you to execute statements only when a specific condition is met. Cond...
1 comment:
›
Home
View web version
Powered by Blogger.