This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Choose a low number and make it the current max number | |
max = -99999999 | |
# get the first value from user | |
number = int(input("Enter value or -1 to stop: ")) | |
# if the number is not equal to -1, execute the following loop | |
while number != 1: | |
if number > max: # if the number entered is greater than the current max number, | |
max = number # store this number as the max number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Check out my video tutorial here: | |
https://www.youtube.com/watch?v=IprbE2C_rsE | |
1. Make sure you save your file with a .py extension before trying to build/run it. | |
If you try to build before saving, it won't work. | |
2. Go to Sublime Text to: Tools -> Build System -> New Build System | |
and delete whatever is there. Copy and paste the following onto the empty file: | |
{ |