Hey there! Sign in to join this conversationNew here? Join for free
x Turn on thread page Beta

Compare values stored in variables, then print the variable name python watch

Announcements
    • Thread Starter
    Offline

    4
    ReputationRep:
    I have tried to use the max code but it printed out the largest number not the variable name.

    A=0
    B=0
    C=0
    textfile = open(“Preference.txt”,“r
Poll
Do you like carrot cake?

The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

Write a reply...
Reply
Hide
Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.