tuple

YoungJoon Suh·2022년 8월 4일
0

Tuple was unpacked using in the format method. This can help make your code cleaner.
Transpose with zip
data = ((0,1,2),(3,4,5),(6,7,8),(9,10,11))
data_transpose = tuple(zip(
data))
print(data_transpose)
((0,1,2,3),(4,5,6,7),(8,9,10,11))
sq_iterator = (x**2 for x in range(10))
Which module can tell you the current time and date?
datetime

Which module has a method for changing the current working directory?
os

Which module can read data from a comma separated values (.csv) file into Python dictionaries for each row?
csv

Which module can help extract all of the files from a zip file?
zipfile

Which module can say how long your code took to run?
time

def generate_password():
return random.choice(word_list) + random.choice(word_list) + random.choice(word_list)

def generate_password():
return ''.join(random.sample(word_list,3))

profile
저는 서영준 입니다.

0개의 댓글

관련 채용 정보