Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

showing indentation erroe in line 9

0 votes
asked Jun 4, 2020 by Shubham Yadav (180 points)
import numpy as np
arr2 = np.ar([60,40,25])
for element in arr2:
    for i in range(3):
        if ar[i]>element:


1 Answer

+1 vote
answered Jun 6, 2020 by xDELLx (10,520 points)
edited Jun 6, 2020 by xDELLx

On Line "  if ar[i]>element: " the array "ar" is never created as a variable ,hence the error.

Also " count=count+1" will generate error as variable count not defined

finally, " temp=a[i]" will be an error ,you can figure this one cheeky

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.