0% found this document useful (0 votes)
17 views2 pages

Python String and File Methods Guide

Master the concepts with Python Cheetsheet

Uploaded by

Ael
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views2 pages

Python String and File Methods Guide

Master the concepts with Python Cheetsheet

Uploaded by

Ael
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

‭String‬ ‭File‬ ‭Date Time‬ ‭Array‬ ‭Set & Mapping‬

‭ tring Methods‬
S ‭ ethods‬
M ‭ ate Object‬
D ‭ rray Methods‬
A ‭ et IYpes‬
S
‭capitalize()‬ ‭dose‬ ‭replace((year,‬ ‭append(x)‬ ‭len(s)‬
‭center(width[,‬ ‭usn‬ ‭month, day))‬ ‭buffer_info()‬ ‭X In S‬
‭fillcharJ)‬ ‭filenoo‬ ‭timetuple()‬ ‭byteswap()‬ ‭x not in s‬
‭count(subl, startl,‬ ‭isatty()‬ ‭toordinal()‬ ‭count(x)‬ ‭isdisjoint(0ther)‬
‭endl])‬ ‭next()‬ ‭weekday()()‬ ‭extend(iterable)‬ ‭issubset(0tners)‬
‭decode‬ ‭read([size])‬ ‭isoweekday()0‬ ‭fromfile(f,n)‬ ‭issuperset‬
‭encode(encoding[,‬ ‭readline([sizel)‬ ‭isocalendar()()‬ ‭fromlist(list)‬ ‭union(0tner...)‬
‭errorsl])‬ ‭readlines(ßizenintl)‬ ‭isoformat()‬ ‭fromstring(s)‬ ‭intersection(other,‬
‭endswith(suffb(,‬ ‭xreadlines()‬ ‭str_0‬ ‭fromunicode(s)‬ ‭difference(0tner...)‬
‭starq, end]])‬ ‭seek(0ttsetL‬ ‭strmme()‬ ‭index(x)‬ ‭copy0‬
‭expandtabs(tabsiz‬ ‭whence])‬ ‭Datetime Object‬ ‭pop(i])‬ ‭update()‬
‭el)‬ ‭tell()‬ ‭date()‬ ‭remove(x)‬ ‭intersection_updat‬
‭start[, end])‬ ‭truncate(sizel)‬ ‭timetz()‬ ‭reverse()‬ ‭e()‬
‭format(*args,‬ ‭write(str)‬ ‭replace([year[,‬ ‭tofile(f)‬ ‭difference_update(‬
‭**kwargs)‬ ‭Mitelines(sequenc‬ ‭month[, dayl, ho‬ ‭tolist()‬ ‭)‬
‭index(sub[, start[,‬ ‭e)‬ ‭url, minutel‬ ‭tostrin‬ ‭add(elem)‬
‭end])‬ ‭Attributes‬ ‭second[,‬ ‭ounicode‬ ‭remove()‬
‭isalnum()‬ ‭closed‬ ‭microseco‬ ‭Indexes and Slices‬ ‭discard(elem)‬
‭isalpha()‬ ‭encoding‬ ‭astimezone(tz)‬ ‭len(a)‬ ‭pop()‬
‭isdigit()‬ ‭errors‬ ‭utcoffset()‬ ‭a[01‬ ‭clear()‬
‭islower()‬ ‭mode‬ ‭dst()‬ ‭a[51‬ ‭Mapping Types‬
‭isspace()‬ ‭name‬ ‭tzname()‬ ‭a[-l]‬ ‭len(d)‬
‭istitle()‬ ‭newlines‬ ‭timetuple()‬ ‭all‬ ‭d[keyl‬
‭isupper()‬ ‭softspace‬ ‭utctimetuple()‬ ‭all‬ ‭d[keyl = value‬
‭join(iterable)‬ ‭toordinal()‬ ‭all :-ll‬ ‭del d[key]‬
‭Ijust(width[,‬ ‭weekday()‬ ‭6‬ ‭key in d‬
‭fillchar])‬ ‭isoweekday()‬ ‭5‬ ‭key not in d‬
‭lower()‬ ‭isocalendar()‬ ‭5‬ ‭iter(d)‬
‭Istrip(chars])‬ ‭isoformat()‬ ‭4‬ ‭clear()‬
‭partition(sep)‬ ‭str 0‬ ‭[0,1‬ ‭copyO‬
‭replace(old, new[,‬ ‭ctime()‬ ‭[12]‬ ‭fromkeys(seq[,‬
‭count])‬ ‭strmme()‬ ‭11‬ ‭value])‬
‭start[, end]])‬ ‭Time Object‬ ‭Shallow copy of a‬ ‭get(key[, default])‬
‭rindex(sub[, start[,‬ ‭replace(hourl,‬ ‭has_key(key)‬
‭endll)‬ ‭minutel, second‬ ‭items()‬
‭rjust(width[,‬ ‭rnüosecond[,‬ ‭iteritems()‬
‭fillchar])‬ ‭isotormat()‬ ‭iterkeys()‬
‭rpartition(sep)‬ ‭str_0‬ ‭itervalues()‬
‭rsplit([sep[,‬ ‭utcoffset()‬ ‭keys()‬
‭maxsplitl])‬ ‭dst0‬ ‭pop(key[, default])‬
‭rstrip([chars])‬ ‭tzname()‬ ‭popitem()‬
‭maxsplitll)‬ ‭setdefautt(keyl,‬
‭splitlines(lkeepend‬ ‭default])‬
‭sl)‬ ‭update(other])‬
‭startswith(prefixl,‬ ‭values‬
‭start[, end])‬
‭strip(charsl)‬
‭swapcase‬
‭title()‬
‭translate(table[,‬
‭deletecharsl)‬
‭upper()‬
‭zfill(width)‬
‭isnurneric()‬
‭isdecimal()‬

You might also like