10 abc 20 de44 30 55fg 40

TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/10GHUAZscNKJxXaApjxeb-PWVI8TUBm3I?usp=sharing


0,1,2,3,4,5,6,7,8,9,10,11,12,13,14

TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/1X8rCCUojPLPWgtFZBrlb2wRVZ746K16B?usp=sharing



alpha_password = create_password_generator('abcdef')
symbol_password = create_password_generator('!@#$%')
print(alpha_password(5)) # efeaa
print(alpha_password(10)) # cacdacbada
print(symbol_password(5)) # %#@%@
print(symbol_password(10)) # @!%%$%$%%#

TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/13AHympDmX53ItCXP_TBnwWHoUxyywtkH?usp=sharing


TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/1Bptfc_yVr5tR52Kp71WWObn07IHHBmIn?usp=sharing


#Given the following:
array = [2,3,9,7,6]
#Your function should return:
[2,3,6]

TRY IT YOURSELF

ANSWER

This question tests our problem solving skills in Python and our understanding of the array data structure.

def greater_elems(array):
array.sort()
if len(array) <3:
return []
elif len(array) == 3:
return array[:1]
else:
return array[:-2]


Call  |   Return valuemyxml('foo') |  <foo></foo>myxml('foo', 'bar') |  <foo>bar</foo>myxml('foo', 'bar', a=1, b=2, c=3) | <foo a="1" b="2" c="3">bar</foo>

TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/1t5VcBTU5rBoz6em8Ma6za8Vfm3DafvQK?usp=sharing


abc def
ghi jkl
fed cba
lkj ihg

TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/1fmTD6fcPqOd_Q-JRLGmyWinYPyUZ5Mw2?usp=sharing


scores/9a.json
science: min 75, max 97, average 86.4
literature: min 78, max 98, average 83.6
math: min 65, max 100, average 85.0
scores/9b.json
science: min 35, max 95, average 82.0
literature: min 38, max 98, average 72.0
math: min 38, max 100, average 77.0

TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/1B7McGu4BeupjBgps5jNb1t_xD8F-e9YX?usp=sharing


root:*:0:0::0:0:System Administrator:/var/root:/bin/sh
daemon:*:1:1::0:0:System Services:/var/root:/usr/bin/false
# I am a comment line
_ftp:*:98:-2::0:0:FTP Daemon:/var/empty:/usr/bin/false
root    0
daemon 1
_ftp 98

TRY IT YOURSELF

ANSWER

https://colab.research.google.com/drive/1Y1SdxKBCG5GiYSKyowqZWJliSKy8RS-j?usp=sharing

Abish Pius

Data Science Professional who teaches with unflashy, simple to understand python code.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store