I have just finished completing part one of the pset1 of the first week of the cs50 course!  It took me a while to complete 3 sets… I didn’t know whether I was doing it right because I felt like my method was so longwinded and there wasn’t anyone to tell me else wise. I started the course a while ago but only watched pset0 videos and did the scratch task. I woke up at 7am this morning and I started at 9am and ended it at 3am! In total, it took me around 10 hours to watch all the videos and research and complete the task – as the course suggested.

Apart from constantly being distracted by the internet and wanting to make food I really enjoyed it. When you complete a task the achievement feels super duper good ๐

## Mario’s Pyramid

The first task was to recreate a triangle using hashes like the pyramid blocks in Mario.

```Please enter the height: 4 ...# ..## .### #### ```

So the dots are supposed to be spaces but WordPress won’t let me put those in. The end result would be 1 space less than the height then 1 #. Then 1 less space and 1 more hash etc etc.

There’s an easier version and a more ‘comfortable’ version. I started off with the harder version thinking I was smarter than I actually was and found it difficult so had to revert back to the easier version. I’m not sure whether I did it right but I managed to get the stuff printed out after some failed efforts. I had to watch all their course videos and rewatch the lecture to complete it. Then I decided to move onto the harder version and complete that one too. I sent to get it marked by the bot and I only got 85% for one as I didn’t realise you had to ‘style’ the code too which was annoying.

My answer just consisted of simple for and while loops which I learnt on Codeacademy last year for Javascript. It’s all kind of similar. I had to make it only accept a value between 0 and 23 that was an integer.

The more comfortable task asked you to make a pyramid that looked more like this.

```Please enter the height: 4 ...##..## ..###..### .####..#### #####..#####```

So it had to start from 2 hashes and then have 2 spaces after the hash and then the same amount of hash on the other side. I had to print them out line by line to get it like that.

After many failed attempts of the code not working. I managed to complete it.