This page tought me everything I needed to know about functions for this WSQ. This is my code: def sum(num1, num2): return(num1 + num2) def diff(num1, num2): return(num1 – num2) def prod(num1, num2): return(num1 * num2) def div(num1, num2): return(num1 // num2) def rem(num1, num2): return(num1 % num2) x = […]
Here are my programs for the two problems of Quiz 06.
https://www.dropbox.com/s/aw1iztygj5lwznf/p1.py?dl=0
https://www.dropbox.com/s/90chm5o9zppm58u/p2.py?dl=0
For calculating the sum I used a while-loop. This one is nested in an if-else statement, so that the program can tell the user when we confused the lower with the upper bound. This is my code: print(“I will calculate the sum of numbers in a range you select.”) numLow = numLow1 = int(input(“What is […]
Again is used these Python 3 programming examples. There I found how to use while-loops. Here is my code: import random numCom = random.randrange(1, 101) numUs = int( input( “Give me a number between 1 and 100: “)) attempt = int(1) while numCom != numUs : attempt = attempt + 1 […]
For this WSQ, again, those Python 3 programming examples where really useful. This is my code: tempF = float(input(“Give me a temperature in Fahrenheit. “)) tempC = float( 5.0 * (tempF – 32) / 9.0) print(“The temperature in Celsius is”,tempC) if tempC <= 0: print(“Water freezes at this temperature.”) elif 0 < tempC < […]
So this post is about myself. My name is Finn and I’m an exchange student from Germany. So far I really love Mexico and I’m glad that I’ll stay here for two semesters! 😀 Why are you studying the degree you chose? Back in Germany I’m studying physics. I chose this course of studies for […]
For this WSQ it was useful to read through some Python 3 programming examples. Here comes my code: num1 = float( input( “Give me a number! “)) num2 = float( input( “Give me another number! “)) sum = num1 + num2 print(“The sum of both numbers is”, sum) diff = num1 – num2 print(“The difference […]
I registered to kenscourses.com.
Flipped classroom is an interesting model of having class, for teacher and students. In order to realize this idea effectively, both need to adapt their behaviour regarding schooling: Students need to be reliable and to work independently The teacher should give the students the opportunity to work by themselves by giving them clear instructions and […]
It’s time to install Python. I decided to install VirtualBox so that I can run Ubuntu on my Windows PC. This video (in german, but there are videos in english, as well) showed me how to use an .iso-file to install Ubuntu using VirtualBox. Fortunately Pyhton 3 is already installed on Ubuntu. Unfortunately the resolution […]