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
Post a Comment