Skip to content

Latest commit

 

History

History
executable file
·
29 lines (21 loc) · 519 Bytes

usefulStuff.md

File metadata and controls

executable file
·
29 lines (21 loc) · 519 Bytes

Useful Stuff

This contains commands, modules and other cool things you might want to know about Python 3. It's also something I use to cement things I learn. Enjoy.


List All Functions in a Module

import module
everything = dir(module)
print(everything)

Convert Input to A String, Integer or Float

user_input=int(input())
user_input=float(input())
user_input=input()
user_input=str(input())

Using Or

if example == yes or example == no:
  return something