The playground code


import numpy as np
def main():
arr = [1, 3, 2, 2, 5, 3, 8, 2]

# Convert the above array into ndarray
arr = None


# Use where to find all the indexes of 2
x = None

return 0

if name == ‘main’:


yes you are correct , thanks for help. In addition to that ,guys add, proper indentation, replace " inverted commas with retyping them and name == main: part with _ _ name _ _ == ‘inverted comma_ _ main_ _’ inverted comma :

reason being comment text area double underscore in both side result in making text bold and inverted commas as kinda string not the real inverted commas

and i suggest practice python by learning from good youtube channel such as mosh or anyone else and practice from hackerrank , here it doesnt have any quality question and even question error like this or just complete this course fast and then jump on to hackerrank