Thursday, July 4, 2019

Python Language Tit-bits I always forget for interviews.

==

dictionary - add, delete, access key,value, length etc

list - add, delete, access key,value, length etc

tuples - add, delete, access key,value, length etc

set - add, delete, access key,value, length etc

==
for key, value in enumerate(list_name):
  print(key,value)

###

zip

###

join

###

len(list_name)
list_name.length()

####
int(string_int)
str(int)
####

map

####

filter

####

reminder = x % 10
quotient = x // 10
####
unittest package
####
file processing
#### s = "split this string"
s.split() # default is space
join_string = ':'
join_string.join(#iterator)


No comments:

Post a Comment

It's OK to be NOT-OK.

02/22/2021  Last week I was just un-productive and was not doing enough to talk about. I also wanted to say that weeks before the last, I ha...