Mastery Topics – #TC1017 (Python3)

--Originally published at TC1017 (Python3) – Titel der Website

Dear friends,

30 minutes ago, I had an appointment with Ken. Yes, we all know, that we normally program with C++ in this course. But Ken gave me at the beginning of the semester the great opportunity to program with python3 in this semester.

So a lot of things/codes are in python much easier and shorter than in C++. That was the reason for my appointment with Ken. Because of this reason i agreed with Ken that I am going to do a huge blog post with 15 mastery topics.

Enjoy…

Mastery Topic #1 – Use of comments

M1.PNG

For a comment you just use the Hash symbol (#). What makes the comment to a comment, ist that every symbol after the # is grey.

 

Mastery Topic #2 – Python conventions (Zen of Python)

The Zen of Python

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren’t special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one– and preferably only one –obvious way to do it.
Although that way may not be obvious at first unless you’re Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it’s a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea — let’s do more of those!

https://www.python.org/dev/peps/pep-0020/

 

Mastery Topic #3 – Basic types and their use

Basic (or also primitiv) types in python are: Integer, floats, strings, characters

m4.PNG
m4-2.PNG
m5.PNG
m6.PNG
m8.PNG
m8-2.PNG
m8.PNG
m10.PNG
m11.PNG
m12.PNG
m13.PNG
m14.PNG
Continue reading "Mastery Topics – #TC1017 (Python3)"

Mastery Topics (TC2017)

--Originally published at Programming in C++

First Parcial, Second Parcial, Final

  1. Use of comments

#WSQ03 – Random number

  1. C++ Good Style coding conventions
  2. Basic types and their use
  3. Basic output (print)
  4. Basic user input (text based)
  5. Calling functions
  6. Creating functions
  7. Importing and using libraries
  8. Creating and using your own libraries (program with multiple files)
  9. Use of the conditional “if”
  10. Use of “else” with a conditional if
  11. Nesting of conditional statements (ifs inside ifs)
  12. Use of loops with “while” and “do while”
  13. Use of loops with “for”
  14. Nested loops
  15. Use of recursion for repetitive algorithms
  16. When to use what type of repetition in a program
  17. Creation and use of Arrays/Vectors in C++
  18. Creation and use of strings
  19. Validated user input (ensure correct/expected data entry)
  20. Reading and writing of text files
  21. Matrices and Vectors
  22. Data analysis with tools (to be determined which tool, most likely SciLab)
  23. Visualization of data with tools