DEV Community

Eric Willis
Eric Willis

Posted on

1 1

Replit's 100 Days of Code (Day 13 Challenge)

Day 13 jumps straight into the task. We are creating a "Grade Generator".

I'll get started and report back.

This is presented as the first "major" project that we'll build. "This project is going to take some time (and some hard thinking) but will be brilliant once you have it working!"

I'm a bit nervous as I don't feel like I've fully grasped everything nor did I breeze through the previous days.

Did much better on this than I imagined. I got through it with very little help. The only thing I needed to do was google how to add color to a word.

This is probably rudimentary but it's an accomplishment for me. Here is my code:

print("This is a grade generator")
print("Enter the grades for each assignment")
print("Python Skills Grade:")
nameOfTest = input("What is the name of the test?")
maxScore = int(input("What is the maximum score?"))
yourScore = int(input("What is your score?"))
percentage = (yourScore/maxScore)*100
print("Your percentage is:", percentage)
if percentage >= 90:
print("You got an A 🎉")
elif percentage >= 80:
print("You got a B 🎉")
elif percentage >= 70:
print("you got a C 😐")
elif percentage >= 60:
print("You got a D 😔")
elif percentage < 60:
print("\033[0;31m" + "You got a U 😔")
else:
print("Try again!")

One thing I forget to do sometimes is close out my code with the else statement at the end. I've done that multiple times. It's a bad habit that I need to correct.

Day 14 is the first game. I'm a bit worried about that one. I'll probably go back and redo lessons 11-15 just to make sure things stick. Sometimes I do feel like I'm cheating as Replit will make a suggestion that helps finish a line of code for me. I understand the code and was going to write it anyway. However, I feel like I should just not click tab to complete it just so that I get used to writing things out on my own.

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay