Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.misc    |    General topics about computers not cover    |    21,759 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 21,586 of 21,759    |
|    Stefan Ram to Stefan Ram    |
|    Re: The Dream of Coding Without Coders    |
|    22 Nov 25 12:11:11    |
   
   From: ram@zedat.fu-berlin.de   
      
   ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted:   
   >Actually, a sub-specification is already sufficient.   
      
    Prompt:   
      
   Please write a program!   
      
    Chatbot's Answer:   
      
   |largest = None   
   |smallest = None   
   |   
   |while True:   
   | num = input("Enter a number: ")   
   | if num == 'done':   
   | break   
   | try:   
   | n = int(num)   
   | except:   
   | print('Invalid input')   
   | continue   
   | if largest is None or n > largest:   
   | largest = n   
   | if smallest is None or n < smallest:   
   | smallest = n   
   |   
   |print('Maximum is', largest)   
   |print('Minimum is', smallest)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca