Write a Python program to check whether the n-th element exists in a given list

  • برمجة
  • برمجة بايثون

Write a Python program to check whether the n-th element exists in a given list.

الأجوبة

x = [1, 2, 3, 4, 5, 6]
xlen = len(x)-1
print(x[xlen])
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...