However, I noticed the program was outputting the result twice. I had no idea why that was, but I was glad my code worked even if it wasn't perfect.
So I submitted my task to ChatGPT, and it noticed the error at once and explained what was wrong with my code and how to fix it.
To start this task, I broke it into steps and added comments along the way. Then I wrote each part with clear spacing so it was easy to read.
I began by welcoming the user and asking for their name, then I compared and calculated the two numbers before dividing them.
I also understood the purpose of indentation in conditionals and learned a few keywords such as if, elif, else, or, and and.
After practicing what I learned, I asked ChatGPT to give me a small project to work on to test my knowledge of what I've learned so far.
This part was a bit difficult for me because i wanted to achieve two things in one line of code - print the sum of my values and round it up to the nearest digit for values that contain decimals. I didn't know where to add the round function at first but i later figured it out.
I also understood the purpose of indentation in conditionals and learned a few keywords such as if, elif, else, or, and and.
After practicing what I learned, I asked ChatGPT to give me a small project to work on to test my knowledge of what I've learned so far.
This week, I reinforced my learning on floats, integers, rounding numbers, basic calculations, and conditionals. I especially liked conditionals because they help me predict outcomes and choose which line of code to run. This also introduced me to boolean expressions.
This week, I reinforced my learning on floats, integers, rounding numbers, basic calculations, and conditionals. I especially liked conditionals because they help me predict outcomes and choose which line of code to run. This also introduced me to boolean expressions.
@theprettyarike Handicap 2 bawo? ๐๐๐
Baa si ni e tewo adura nisi yi ko si oun e fe te๐๐๐๐๐๐คฃ๐คฃ๐คฃ
Make una pour me water abeg ๐๐๐คฃ