Python data science questions- Basic

1) randomly select an element from list-
import random

foo = ['a', 'b', 'c', 'd', 'e']
print(random.choice(foo))

2) Package to control key board and mouse in python-Pynput
3) Package to interact with web pages in Python- Selenium, webbrowser
4) Package for creating API is python -Flask



Comments

Popular posts from this blog

Automatically open and do some actions on web pages in python using different packages

Speech Recognition using PyAudio and SpeechRecognition Libraries

SHAP (SHapley Additive exPlanations) for variable importance in Python