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
document.getElementsByTagName('video')[0].play() | |
document.getElementsByTagName('video')[0].pause() |
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
# Python function: str() | |
# https://docs.python.org/3/library/functions.html#func-str | |
valueInt = 123 | |
valueStr = str(valueInt) | |
# Print that "valueStr" is class 'str' | |
print(type(valueStr)) | |
# ----------------------- | |
# Python function: int() |
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
# Addition and Subtraction | |
print(5 + 5) | |
print(5 - 5) | |
# Multiplication and Division | |
print(3 * 5) | |
print(10 / 2) | |
# Exponentiation 4^2 | |
print(4 ** 2) |