Warning: The magic method Slickr_Flickr_Plugin::__wakeup() must have public visibility in /home/kenbauer/public_kenscourses/tc101fall2015/wp-content/plugins/slickr-flickr/classes/class-plugin.php on line 152
‘#mastery09’ Articles at TC101 Fall 2015
Introduction to Programming Python and C++

Tag Archives: #mastery09

Mastery09

Basic types and their use in Pythonintegers  Whole numbers from negative infinity to infinity, such as 1, 0, -5, etc. Integers or any number negative or positive without decimals can be assigned variables. You can name them anything. You can work with integers directly or assign them to variables. By work I mean you can […]

Mastery 08 & 09

Mastery 08 – The Zen of Python Here’s the Zen of Python running inside my shell. Mastery 09 – Basic type and their use in Python Python has 6 different basic types of data. They are: Integers These are numbers that belong to all the real numbers. Floating point numbers These are all the real […]

MASTERY9

I KNOW WICH ARE THE TYPES IN PYTHON 3
HERE IS AN EXAMPLE WHERE I CONVERT AN STRING INTO AN INTEGER:

Mastery Number 9

I rushed this video since it’s kinda long and i screwed up while recording the first time, but there’s the code with comments and the results.

Mastery09

Basic Types and their use in C++ While programming we need to use different type of information and for each single class of data that we want to produce or to store there is a Data Type in a programming language. One basic principle to understand is that storing a letter is different from storing […]

Mastery09

Basic Types and their use in C++ While programming we need to use different type of information and for each single class of data that we want to produce or to store there is a Data Type in a programming language. One basic principle to understand is that storing a letter is different from storing […]

#Masteries 9 and 13

Mastery 9. Basic types and their use in C++… Mastery 13. Importing and using C++ libraries… And here my video:

#Masteries 9 and 13

Mastery 9. Basic types and their use in C++… Here you can find some information about the basic types in C++ http://www.cplusplus.com/doc/tutorial/variables/ This is a great website to learn C++ Picture taken from http://www.cplusplus.com/ Mastery 13. Importing and using C++ libraries… You can find more information about libraries in those website: http://www.cplusplus.com/reference/clibrary/ Libraries and its functions:…

Mastery 9 – Basic types

Here im going to prove that i know the basic types of Python.

– Integers

 An integer number
x = 7
x + 3 = 10
It canbe used for calculations

– Floats

It´s a decimal number
x = .7 
1.4456
0.1234

– Strings

Is a word, you need to tell pyhton that you are writing a string and not a variable with “
x = “Hello World”
It can be added to integers and other strings
print (x,”I´m jose carlos and im”,18,”years old”)
Hello World I´m jose calros and im 18 years old

-Tuples

An uneditable list, to make one you need to use parenthesis
x = (1,2,3)

-Lists

A list that can me edited, to make one you need to use brackets
x = [6,1,9,”hola”,”hello”]

-Dictionaries 

You link elements with other type, you create one with {} and link each element with :, it is comonly used to map strings to integers.
x = {“hola”:1,”jose”:2, 15:15,”new word”:0}

You can modify the type of a variable with preset functions, sometimes it doesnt work
x = 12
str(x)
“12”
x = “hola”
int(x)
Error

What should you work on?

Week #12 and more partial exams for you.

For this week's readings:
C++ (TC1017) should either be looking at support for your project, ImageMagick C++ libraries are a good start.
Python (TC1014) should be finishing chapter 11 (Dictionaries).