>>> runfile('/Volumes/nfshome/schar/Desktop/cs150/weather.py', wdir='/Volumes/nfshome/schar/Desktop/cs150')
>>> forecast(45, .2)
Today will be cold with scattered rain
>>> forecast(15, .2)
Today will be cold with scattered rain
>>> forecast(55, .2)
Today will be cool with scattered rain
>>> forecast(75, 0)
Today will be warm with no rain
>>> forecast(99, 1)
Today will be hot with heavy rain
>>> forecast(99, 2)
Today will be hot with a whole bunch of rain
>>> runfile('/Volumes/nfshome/schar/Desktop/cs150/conditional-turtle.py', wdir='/Volumes/nfshome/schar/Desktop/cs150')
>>> runfile('/Volumes/nfshome/schar/Desktop/cs150/conditional-turtle.py', wdir='/Volumes/nfshome/schar/Desktop/cs150')
>>> k = 1
>>> while k <= 5:
... print("hello")
... k += 1
...
hello
hello
hello
hello
hello
>>> runfile('/Volumes/nfshome/schar/Desktop/cs150/while.py', wdir='/Volumes/nfshome/schar/Desktop/cs150')
>>> isprime(10)
False
>>> isprime(11)
True
>>> isprime(117)
False
>>> isprime(119)
False
>>> isprime(123)
False
>>> isprime(127)
True
>>> firstprimes(10)
2
3
5
7
11
13
17
19
23
29
>>> number_guessing_game()
Guess a number between 1 and 20: 2
A bit higher
Guess a number between 1 and 20: 13
A bit lower
Guess a number between 1 and 20: 11
A bit lower
Guess a number between 1 and 20: 7
Good job!
>>> number_guessing_game()
Guess a number between 1 and 20: 20
A bit lower
Guess a number between 1 and 20: 10
A bit higher
Guess a number between 1 and 20: 15
A bit higher
Guess a number between 1 and 20: 17
A bit higher
Guess a number between 1 and 20: 19
Good job!