Write a Python program to access and print the element at a given index from a tuple.
Line 1: Space-separated tuple elements. Line 2: Integer index.
Print the element at the specified index.
Valid index within tuple bounds
apple banana cherry date 2
cherry
Tuple elements can be accessed using zero-based indexing inside square brackets.
def get_element(tup, idx):
# Write your code here
pass
tup = tuple(input().split())
idx = int(input())
print(get_element(tup, idx))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