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
""" | |
Match the error with the function | |
a. TypeError | |
b. AttributeError | |
c. IndexError | |
d. ValueError (error 1) | |
e. ZeroDivisionError | |
f. IndentationError | |
More error types: |
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 stack import Stack | |
def lecuture_test_1(): | |
out_string = "" | |
int_stack = Stack() | |
int_stack.push(1) | |
int_stack.push(2) | |
out_string += f"{int_stack.pop()} , " | |
int_stack.push(3) |
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
"""Module to plot Gravitational Wave Templates | |
Can be used to test if a waveform approximant works or not. | |
""" | |
from __future__ import division, print_function | |
import bilby | |
import matplotlib.pyplot as plt |
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
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the active virtualenv | |
# * the branch of the current git/mercurial repository | |
# * the return value of the previous command | |
# * the fact you just came from Windows and are used to having newlines in | |
# your prompts. |
NewerOlder