Write a Python program to find the index of a target element in a list using linear search. Print -1 if not found.
Line 1: Space-separated list elements. Line 2: Target element.
Print the index or -1.
1 <= len(arr) <= 100
10 20 30 40 50 30
2
Iterate through the list checking each element.
def linear_search(arr, target):
# Write your code here
pass
arr = input().split()
target = input()
print(linear_search(arr, target))Embedded systems rely on efficient low-level programming to interact directly with hardware. In this course, you will learn how to write practical Embedded C programs used in real microcontroller-based systems. Rather than focusing only on theory, this course follows a practice-driven approach. Each lesson includes hands-on coding exercises that simulate real firmware development tasks used