Most programing languages have a set of functions available that the user can us without the need to program it himself. But the user can also define and use his own functions. Important to know is that in Python functions are treated like objects. This way they are way more flexible. As already mentioned, there …
Category Archives: TC1017
Basic user input
Not all programs can proceed on their own. Some need input form the user to do the job, for example the name, birthday or email address. In Python a basic user input can be realized using the input function. The syntax of input is the following:variable = input(‚text for the user‘)When the machine is executing …
Saying what you mean – Outputs
To print out the value of a variable we need the function print(). In the brackets has to be written what shell be printed. It works with most numbers, int and float. If you want to print a text (string) you need to put them in quotes (double or single). With print() we can print …
Object types in Python
In Python, like every other programing language as well, you can define different types of objects. This is necessary and helpful in many aspects. Through those object the computer understands what the programer or engineer what’s it to do. It can even help to optimize the performance of the program. People who beginn with programing …
The Zen of Python
The Zen of Python is a set of principles defined from the American software engineer Tim Peter in 1999. Those 19 principles are recommendations for developers and engineers to keep continuity in coding. Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is …
Comments – How to mute your code
In every programing language is function to make comments in your code. Those are very important in sense of document your code for other and even your self. Comments help to structure the code, to explain what is going on and and to remember how your code works. A good structured and commented code can …
I coded a program to calculate areas but I don’t feel like a programer
The programs in the screenshot are pretty simple and ideal to beginners. The first one is suppose to calculate the area of a triangle with the a, b and c. So the user needs to enter the input first before it is calculated. First I used fixed variables but they are commented out. The second …
Weiterlesen I coded a program to calculate areas but I don’t feel like a programer
Beginning with python
Made my first steps with python using the program „Thonny“. Need to get used to the new syntax of the language. Im used to java and C. But python seems to be a little easier (at least for beginners). It’s not much but it’s honest work. I would like to upload the file, but WordPress …
First Block
Using editor: Atom (but it may change during the course). Python: installed. But first time on a Mac. Block: obviously created. Hope it’s public. Never had one. GitHub: already installed. I also should have a user account. Hypothesis.si: account created. Homework: submitted (but 5 min too late. we can’t have it all)