Write a Python program to print a nested lists (each list on a new line) using the print() function

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

 Write a Python program to print a nested lists (each list on a new line) using the print() function.

الأجوبة

colors = [['Red'], ['Green'], ['Black']]
print('\n'.join([str(lst) for lst in colors]))
هل كان المحتوى مفيد؟

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

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