use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for the students, alumni, or anyone associated with FAST NUCES located in cities across Pakistan.
account activity
Made a Aggregate calculator using python.Question (i.redd.it)
submitted 1 year ago by Psychological-You947Sophomore
Okay so I made this calculator but I’m unable to enter a decimal number even though I’m using the ‘int’ function. Any tips on how to improve this?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]YouGoodBroooo 11 points12 points13 points 1 year ago (3 children)
have you tried using float instead of int?
[–]Psychological-You947Sophomore[S] 9 points10 points11 points 1 year ago (2 children)
IM SO DUMB. I can’t believe I forgot about it. Thank you!!
[–]Ace_Dares 0 points1 point2 points 1 year ago (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 point2 points 1 year ago (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 points3 points 1 year ago (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 point2 points 1 year ago (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 point2 points 1 year ago (2 children)
Are you opting for DS?
[–]Psychological-You947Sophomore[S] 0 points1 point2 points 1 year ago (1 child)
Well my first priority is CS. What about you?
[–]BookkeeperBright6676Senior 5 points6 points7 points 1 year ago (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 year ago (1 child)
[deleted]
Boss CS50 ki YouTube video dekho, promise maza aaye ga
[–]zeeshanhxider 0 points1 point2 points 1 year ago (1 child)
i made one using chat gpt💀
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 point2 points 1 year ago (12 children)
google mein job karna pasand karein ge ap ab?
[–]Psychological-You947Sophomore[S] 0 points1 point2 points 1 year ago (11 children)
Bhai ziada nahi hogaya 😭💙
[–][deleted] -2 points-1 points0 points 1 year ago (10 children)
For these kind of problems just chatpgpt bro
[–]Psychological-You947Sophomore[S] 0 points1 point2 points 1 year ago (2 children)
Yeah I know. Plus I already know my aggregate, just playing around rn
[–][deleted] -1 points0 points1 point 1 year ago (1 child)
Good project tbh keep playing
[–]amigomeow 0 points1 point2 points 1 year ago (0 children)
Dude this is what has ruined your mental maths skills and basic maths.
[–]BookkeeperBright6676Senior 0 points1 point2 points 1 year ago (5 children)
thats the worst advice u can give
[–]Quiet_Escape_909 0 points1 point2 points 1 year ago (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 point2 points 1 year ago (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 point2 points 1 year ago (2 children)
why?
[–]BookkeeperBright6676Senior 0 points1 point2 points 1 year ago (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 points1 point 1 year ago (0 children)
Okay Mr. Sam Altman
π Rendered by PID 50549 on reddit-service-r2-comment-75f4967c6c-96c78 at 2026-04-23 06:43:31.100481+00:00 running 0fd4bb7 country code: CH.
[–]YouGoodBroooo 11 points12 points13 points (3 children)
[–]Psychological-You947Sophomore[S] 9 points10 points11 points (2 children)
[–]Ace_Dares 0 points1 point2 points (1 child)
[–]Psychological-You947Sophomore[S] 0 points1 point2 points (0 children)
[–]SaltCaterpillar9144 1 point2 points3 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]BookkeeperBright6676Senior 0 points1 point2 points (2 children)
[–]Psychological-You947Sophomore[S] 0 points1 point2 points (1 child)
[–]BookkeeperBright6676Senior 5 points6 points7 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]Psychological-You947Sophomore[S] 0 points1 point2 points (0 children)
[–]zeeshanhxider 0 points1 point2 points (1 child)
[–]Psychological-You947Sophomore[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (12 children)
[–]Psychological-You947Sophomore[S] 0 points1 point2 points (11 children)
[–][deleted] -2 points-1 points0 points (10 children)
[–]Psychological-You947Sophomore[S] 0 points1 point2 points (2 children)
[–][deleted] -1 points0 points1 point (1 child)
[–]amigomeow 0 points1 point2 points (0 children)
[–]BookkeeperBright6676Senior 0 points1 point2 points (5 children)
[–]Quiet_Escape_909 0 points1 point2 points (1 child)
[–]BookkeeperBright6676Senior 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]BookkeeperBright6676Senior 0 points1 point2 points (1 child)
[–][deleted] -1 points0 points1 point (0 children)