my_list = [3, 5, 9]
print(my_list)
## practice in python ## | |
# get input | |
num1 = int(input("num1 = ")) | |
num2 = int(input("num2 = ")) | |
# + | |
print("+ = ", num1 + num2) | |
# - |
''' | |
python -m pip install pyautogui | |
python -m pip install keyboard | |
''' | |
import keyboard | |
import pyautogui | |
while True: | |
if(keyboard.is_pressed('z+z')): | |
pyautogui.click() # Run click in mouse | |
time.sleep(0.25) |
const factorial = (n) => { | |
if(n === 0){ | |
return 1 | |
}else{ | |
return n * factorial(n-1) | |
} | |
} | |
const factorial_with_short_way = n => (n === 0 ? 1 : n * factorial(n - 1)); |