Skip to content

Instantly share code, notes, and snippets.

View wafiqsyed's full-sized avatar

Wafiq Syed wafiqsyed

View GitHub Profile
@wafiqsyed
wafiqsyed / largestNumber.py
Created July 1, 2019 16:40
Python Tutorials - While loop: find the largest number from a large set of entered data
# 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
@wafiqsyed
wafiqsyed / How to link Sublime Text Build system to Python 3
Last active August 7, 2019 23:49 — forked from zaemiel/How to link Sublime Text Build system to Python 3
Really quick way to make sure your Sublime Text is using Python 3 to run your code. I've edited this a bit. If you still have problems, visit the original repo and check the comments.