[Tutor] Python

Jeroen van de Ven jeroen.vandeven at zwijsencollege.org
Thu Nov 30 03:20:32 EST 2017


Hello,
Can you build these 4 programms for me?
1:
Input: 5 7 (rows and colloms)
Output:
*******
*******
*******
*******
*******

2:
Move all of the letters 23 places to the right. All capital letters.
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (boodschap)
X Y Z A B C D E F G H I J K L M N O P Q R S T U V W (code)

N=23

Example
Input:   COMPUTER
Output: ZLJMRQBO

3: Bitcoin:
Make as much as possible money.
-You start with no bitcoin.
-You stop with no bitcoinJ
-Never have more then 1 bitcoin at a time.
-You can sell and buy a bitcoin whenever you want to.
First input = N, the amount of days. Then the input is the course of the
bitcoin of every day.
Output is 1 line with maximum of profit. It can be 0.
Example:
Input: 10 5 11 4 2 8 10 7 4 3 6
Output: 17

Kind Regards Jeroen van de Ven (beginner)


More information about the Tutor mailing list