You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This course requires knowledge of the Python programming language. If you don't know what output the code below produces, you will likely struggle in this class. (You should also know how to run this code).
import numpy as np
(y, z) = ('banana', 37)
print(z)
def foo(x=3):
x += 1
return x
def bar():
z = 9
y = 'orange'
return y[-1]
z = foo(31)
print(z, y)
something = bar()
print(f'This is {something} I wrote')
w = [1]
while len(w) < 5:
w.append(sum(w))
print(w)
q = {'lion': True, 'tiger': True, 'apple': False}
for i in q:
print(i)
u = np.array(w)
print(u[-1])
s = set([9, 9, 9])
print(s)
If you have not programmed in Python before, you are encouraged to drop this course and take IE 555 in the fall semester.
The text was updated successfully, but these errors were encountered:
This course requires knowledge of the Python programming language. If you don't know what output the code below produces, you will likely struggle in this class. (You should also know how to run this code).
If you have not programmed in Python before, you are encouraged to drop this course and take IE 555 in the fall semester.
The text was updated successfully, but these errors were encountered: