[Tutor] Python

Mark Lawrence breamoreboy at gmail.com
Thu Nov 30 13:10:26 EST 2017


On 30/11/17 08:20, Jeroen van de Ven wrote:
> Hello,
> Can you build these 4 programms for me?

This list doesn't work like that.  We will not write code for you.  You 
make an attempt at the problems, we will then assist.

> 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)

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list