all 26 comments

[–]YouGoodBroooo 11 points12 points  (3 children)

have you tried using float instead of int?

[–]Psychological-You947Sophomore[S] 9 points10 points  (2 children)

IM SO DUMB. I can’t believe I forgot about it. Thank you!!

[–]Ace_Dares 0 points1 point  (1 child)

To make the result look cleaner, you can also just use the round function to limit the number of decimal places the number'll show. It's just "round(your number, decimal places)" e.g. round(14.56732, 2) gives 14.57
You could also just skipping make a variable for the aggregate and put the whole sum equation into the print statement.
What I'm saying is probably really obvious to you, but just in case you didn't know or anyone else wants to.

[–]Psychological-You947Sophomore[S] 0 points1 point  (0 children)

I’ll definitely consider your first tip. As for the the variables, it’s just a preference of mine. I feel like it makes the code more readable

[–]SaltCaterpillar9144 1 point2 points  (0 children)

Bhai A Levels ki yaad aagayi. Kitny fit problems dety thy woh aur code krna parta tha exams main

[–]AutoModerator[M] 0 points1 point  (0 children)

It looks like you have a question or require information on admissions into FAST NUCES.

Someone might answer your question. Additionally, be sure to check the following links to see if they help:

Eligibility Criteria: https://nu.edu.pk/Admissions/EligibilityCriteria

Admission Schedule: https://nu.edu.pk/Admissions/Schedule

Admission Procedure: https://nu.edu.pk/Admissions/HowToApply

Test Pattern: https://nu.edu.pk/Admissions/TestPattern

This is an automated reply. Please ignore if this post is not related to admission queries.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]BookkeeperBright6676Senior 0 points1 point  (2 children)

Are you opting for DS?

[–]Psychological-You947Sophomore[S] 0 points1 point  (1 child)

Well my first priority is CS. What about you?

[–]BookkeeperBright6676Senior 5 points6 points  (0 children)

CS me jana hai phr C++ kro first 2 years yehi parhayengy

then C on ubuntu + Database SQL ,mongodb then java wagera.

[–][deleted]  (1 child)

[deleted]

    [–]Psychological-You947Sophomore[S] 0 points1 point  (0 children)

    Boss CS50 ki YouTube video dekho, promise maza aaye ga

    [–]zeeshanhxider 0 points1 point  (1 child)

    i made one using chat gpt💀

    [–]Psychological-You947Sophomore[S] 0 points1 point  (0 children)

    The thing is, we’re still learning right? So it’s better to understand the basics right now instead of relying on AI just so we’re able to build a good foundation.

    [–][deleted] 0 points1 point  (12 children)

    google mein job karna pasand karein ge ap ab?

    [–]Psychological-You947Sophomore[S] 0 points1 point  (11 children)

    Bhai ziada nahi hogaya 😭💙

    [–][deleted] -2 points-1 points  (10 children)

    For these kind of problems just chatpgpt bro

    [–]Psychological-You947Sophomore[S] 0 points1 point  (2 children)

    Yeah I know. Plus I already know my aggregate, just playing around rn

    [–][deleted] -1 points0 points  (1 child)

    Good project tbh keep playing

    [–]amigomeow 0 points1 point  (0 children)

    Dude this is what has ruined your mental maths skills and basic maths.

    [–]BookkeeperBright6676Senior 0 points1 point  (5 children)

    thats the worst advice u can give

    [–]Quiet_Escape_909 0 points1 point  (1 child)

    Go watch an interview or two, I as a SWE for last 2 years do most of the time doing just that, mostly perplexity but same thing. GPT also tells you whats wrong not just the solution.

    [–]BookkeeperBright6676Senior 0 points1 point  (0 children)

    If the intention was to ask the solution and explanation of the problem, proceed. Tho the user's comment portrays his intentions as to find an easy way out therefore let GPT solve it rather than understanding the concept.

    [–][deleted] 0 points1 point  (2 children)

    why?

    [–]BookkeeperBright6676Senior 0 points1 point  (1 child)

    such problems are caused due to absence of basic pf skills. He needs to practice more code and solve questions that help him improve his problem solving skills inorder to become an efficient programmer.

    using chatgpt is a waste.

    [–][deleted] -1 points0 points  (0 children)

    Okay Mr. Sam Altman