This file contains hidden or 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
| { | |
| "Make an awesome video": { | |
| "description": "Make the best hackathon video ever!!!!", | |
| "subtasks": [ | |
| "film a cringe intro", | |
| "die inside", | |
| "forget how to speak english", | |
| "film the rest of the video" | |
| ], | |
| "due_date": "" |
This file contains hidden or 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
| from math import * | |
| Resistors = lambda t, *R : {"s": sum(R), "p": 1/sum([1/i for i in R])}[t] | |
| def addResistors(): | |
| type = int(input('s or p')) | |
| resistances = input('Input resistances csv no spaces.').split(',') | |
| print(Resistors(type, resistances)) |