if totalpoints < 0:
totalpoints = min
totalpoints = max(totalpoints, 0)
# will cause an error since 'max' without rounded brackets is a built-in-function
user2points = max
# This will get the bigger number between 0 and user2points
user2points = max(0, user2points)
if totalpoints < 0:
totalpoints = min
totalpoints = max(totalpoints, 0)
user2points = max
tags like this (image below):
Here's some code
Last reply 1 minute ago
Application approved before evidence was able to be submittedLast reply 6 minutes ago
AQA Level 2 Further Maths 2024 Paper 1 (8365/1) - 11th June [Exam Chat]Last reply 9 minutes ago
March Riba part 2 Manchester vs SheffieldLast reply 11 minutes ago
Official London School of Economics and Political Science 2024 Applicant ThreadLast reply 16 minutes ago
Official UCL Offer Holders Thread for 2024 entryLast reply 22 minutes ago
Confused in undergrad final grade at University of GreenwichLast reply 37 minutes ago
Weidenfeld Hoffmann Trust (WHT) Scholarship Notification (2024-2025)Last reply 41 minutes ago
my student finance application isn't showing up when my parent tries to support itLast reply 8 hours ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 19 hours ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 1 week ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 3 weeks ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]Last reply 8 hours ago
Is MathsFM French Alevels good for a CS degree at top uni (OX, UCL, Durham etc)Last reply 19 hours ago
OCR A-level Computer Science Paper 1 (H446/01) - 12th June 2023 [Exam Chat]Last reply 1 week ago
OCR A-level Computer Science Paper 2 (H446/02) - 19th June 2023 [Exam Chat]Last reply 3 weeks ago
AQA A-level Computer Science Paper 1 (7517 1A - 1E) - 12th June 2023 [Exam Chat]Last reply 3 weeks ago
Not receiving any response from University of Birmingham.Last reply 3 months ago
OCR GCSE Computer Science Paper 1 (J277/01) - 19th May 2023 [Exam Chat]Last reply 3 months ago
AQA GCSE Computer Science Paper 2 (8525/2) - 25th May 2023 [Exam Chat]