-
Recent Posts
Recent Comments
Archives
Categories
Meta
Tag Archives: #TC101
Use of comments in Python
#Mastery07 – Use of comments in Python #TC101 @PablO_CVi
Comments are tracks that the programer can add to the code, this won`t change anything in the program, this is just for helping the person that is going to use the code. For adding a comment in Python you just have to put a hashtag like this: #here goes your comment. This is how you can add comments to your code in python. Here you can see that this does not modify the program.
Here is the code i used for this program: https:/
Comments Off on Use of comments in Python
Posted in Blogs, Syndicated, TC1014 Blogs
def Factorial!
#WSQ09 – Factorial Calculator #TC101 @PablO_CVi
Create a program that asks the user for a non-negative integer (let’s call that number x) and display for them the value of x! (x factorial).
After showing them the answer, ask them if they would like to try another number (with a simple y/n response) and either ask again (for y) or quit the program and wish them a nice day (if they answered x).
Comments Off on def Factorial!
Posted in Blogs, Syndicated, TC1014 Blogs
Fun With Numbers(Pro Version)
#WSQ08 -Fun with numbers 2 #TC101 @PablO_CVi
Write a function for each calculation. Each function should define two parameters (in this example of type int) and return the correct value as an integer as well.
- The sum of the two numbers.
- The difference of the two numbers.
- The product of the two numbers.
- The integer based division of the two numbers (so no decimal point). First divided by second.
- The remainder of integer division of the two numbers
Here is my code: https:/
Comments Off on Fun With Numbers(Pro Version)
Posted in Blogs, Syndicated, TC1014 Blogs
Using elif…
#Mastery17 – Use of “elif” with a conditional #TC101 @PablO_CVi
The keyword elif
is short for ‘else if’, and is useful to introduce lots of if in the code.
my code is: https:/
Comments Off on Using elif…
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #222222, #66757f, #70997a, #8cbf99, #eeeeee, #fff9e3, #ffffff, #Mastery17, #TC101
If into a While
#Mastery18 – Nesting of conditional statements #TC101 @PablO_CVi
My code is: https:/
Comments Off on If into a While
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #222222, #66757f, #8cbf99, #mastery18, #TC101
Using Print
#Mastery10 – Basic output (print) in Python #TC101 @PablO_CVi
Here is my code: https:/
Comments Off on Using Print
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #222222, #66757f, #8cbf99, #Mastery10, #TC101
Featuring the Work
#Mastery04 – Submit work via Blog RSS and GitHub #TC101 @PablO_CVi
This is the use of while.
- BLOG RSS: http:/
/ digiart.withknown.com/ 2015/ whileloop - GitHub: https:/
/ github.com/ PablOCVi/ Mastery/ blob/ master/ Mastery19.py
Comments Off on Featuring the Work
Posted in Blogs, Syndicated, TC1014 Blogs
Tagged #222222, #4c93cb, #66757f, #8cbf99, #mastery04, #TC101