Intrvw: Difference between revisions
no edit summary
No edit summary |
|||
Line 1:
= Google GCP Workspaces =
<syntaxhighlight lang='python'>
with open('tab.txt','r') as tab, open('csv.txt','r') as csv, open('data.txt','w') as data:
for line in tab.readlines():
data.write(' '.join(line.strip().split('\t'))+'\n')
for line2 in csv.readlines():
data.write(' '.join(line2.strip().split(','))+'\n')
data.close()
with open('data.txt','r') as file:
for line in file.readlines():
print(line)
</syntaxhighlight>
= Amzn SysDE II =
Line 9 ⟶ 26:
* Coding
<syntaxhighlight lang='python'>
## Write a function that gives you the average latency in a log file with the following format
#
Line 77 ⟶ 95:
avg_lat('/var/log/syslog')
</syntaxhighlight>
;Debrief
|