-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathli.py
More file actions
29 lines (25 loc) · 661 Bytes
/
li.py
File metadata and controls
29 lines (25 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#write a python program for print the pattern
# num=int(input("Enter the number to print the strar pattern:"))
# for i in range(0,num):
# for j in range(0,num,1):
# if i==j:
# print("*",end="")
# else:
# print(j,end="")
# print()
# Introduction in python- the topic name is Linear search
# li=[int(x) for x in input().split()]
# for ele in li:
# print(ele)
# n=int(input())
# li=[int(x) for x in input().split()]
# print(li)
# isfound=False
# ele=int(input())
# for i in range(len(li)):
# if li[i]==ele:
# print(i)
# isfound=True
# break
# if isfound is False:
# print(-1)