Skip to content

Instantly share code, notes, and snippets.

View waseeld's full-sized avatar
🤓
I'm always ready for the impossible

Wasel Al-Mahri waseeld

🤓
I'm always ready for the impossible
View GitHub Profile
@waseeld
waseeld / factorial.js
Created May 25, 2021 14:46
Create the function For get factorial
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));
'''
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)

القوائم في البايثون

my_list = [3, 5, 9]
print(my_list)
## practice in python ##
# get input
num1 = int(input("num1 = "))
num2 = int(input("num2 = "))
# +
print("+ = ", num1 + num2)
# -