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

Speech Recognition using PyAudio and SpeechRecognition Libraries

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

open multiple sites in python Script using web browser package