-
Recent Posts
Recent Comments
Archives
Categories
Meta
Author Archives: Joel Erles
Mastery20
Comments Off on Mastery20
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #Mastery20, #TC, #TC1014, Mastery
Mastery18
Nesting of conditional statements
If you want to check a condition after a previous condition that was true, then you might want to use nested statements.
Example:
NESTED IF CONSTRUCT
In a nested if construct, you can have an if…elif…else construct inside another if…elif…else construct. The syntax of the nested if…elif…else construct may be:
Comments Off on Mastery18
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #mastery18, #TC, #TC1014, Mastery
Mastery19
Comments Off on Mastery19
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #Mastery19, #TC, #TC1014, Mastery
Mastery17
Comments Off on Mastery17
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #Mastery17, #TC, #TC1014, Mastery
Mastery16
Comments Off on Mastery16
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #Mastery16, #TC, #TC1014, Mastery
Mastery15
Comments Off on Mastery15
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #Mastery15, #TC, #TC1014, Mastery
Mastery11 and 12
Comments Off on Mastery11 and 12
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #mastery11, #mastery12, #TC, #TC1014, Mastery
Mastery02
Comments Off on Mastery02
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #mastery02, #TC, #TC1014, Mastery
Mastery01
Comments Off on Mastery01
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #333333, #mastery01, #TC, #TC1014, Mastery
Mastery14
Creating and using a Python module
A module is a file containing Python definitions and statements. The file name is the module name with the suffix “.py”
Example:
- Create “hello.py” then write the following function:
def helloworld():
print "hello"
import hello
hello.helloworld()
>>>'hello'
Comments Off on Mastery14
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #000000, #00008b, #222222, #333333, #393318, #800000, #eeeeee, #mastery14, #TC, #TC1014, Mastery