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
p3 = mtx.loc[: , [6]] | |
p4 = mtx.loc[: , [7]] | |
t8 = mtx.loc[: , [2]] | |
tb = mtx.loc[: , [1]] | |
t9 = mtx.loc[: , [3]] | |
t14 = mtx.loc[: , [4]] | |
t15 = mtx.loc[: , [5]] | |
p5 = mtx.loc[: , [8]] | |
#print(p3) |
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
if p3 >= 200 and p4 >= 250: | |
(p3.iloc[x] / (t8.iloc[x]*2) + p3.iloc[x] / (t9.iloc[x]*2)) / (p4.iloc[x] / (t14.iloc[x]*3) + p5.iloc[x] / (t15.iloc[x]*3)) = a | |
if a >= 0.80: | |
print("Conditions Met") | |
elif a <= 0.80: | |
print("Warning: Low Oxygen Levels") |
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
def pressure = ('p') | |
def temperature =('t') | |
for all ('x') = | |
('x') = p/t | |
print('p' if pressure_input > 0.80 else 'pressure_input'= 0.80 else 'pressure_output') | |
if pressure_output > pressure_input = 0.80 |
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
if a >= 0.80: | |
print("Conditions Met") | |
elif a <= 0.80: | |
print("Warning: Low Oxygen Levels") |
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
<iframe width="100%" height="100%" src="https://eyes.nasa.gov/apps/solar-system/#/sc_voyager_1" frameborder="0" allowfullscreen></iframe> |
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
def on_received_number(receivedNumber): | |
basic.show_string("" + str((receivedNumber))) | |
radio.on_received_number(on_received_number) | |
radio.set_group(2) |
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
radio.onReceivedNumber(function (receivedNumber) { | |
basic.showString("" + (receivedNumber)) | |
}) | |
radio.setGroup(2) |
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
def on_button_pressed_a(): | |
radio.send_number(42) | |
input.on_button_pressed(Button.A, on_button_pressed_a) | |
radio.set_group(2) |
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
input.onButtonPressed(Button.A, function on_button_pressed_a() { | |
radio.sendNumber(42) | |
}) | |
radio.setGroup(2) |
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
class GameObject: | |
def __init__(self, image_path, x, y, width, height): | |
# Player image import and resize | |
object_image = pygame.image.load(image_path) | |
self.image = pygame.transform.scale(object_image, (width, height)) | |
self.x_pos = x | |
self.y_pos = y |
NewerOlder