Advertisement
browncrown

python

Oct 23rd, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. Things I learned in python so far:
  2. import module as name
  3. rjust(i)
  4. print('x', end = 'z')
  5. type(i)
  6. input()     #empty
  7. def functionName():
  8. import time
  9.     time.sleep()
  10. import random
  11.     random.randint(i,x)
  12. import sys
  13.     sys.exit([arg])
  14.  
  15. abs( x )
  16. #strings
  17. import string
  18.     string.ascii_letters
  19.     string.ascii_lowercase
  20.     string.ascii_uppercase
  21.     string.digits
  22.     string.hexdigits
  23.     string.ocatadigits
  24. spam = '1 2 3 4 5 6 7 8 9 0'.split()
  25. spam >> ['1', '2', '3', '4', '5', '6', '7', '8', '9', '0']
  26. str.split(sep=None, maxsplit=-1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement