input and output of integer array/list

0 HITESH VAIDYA · August 1, 2015
if I just type the name of the list, it should display the list.But in the terminal of my mac, it doesnot display the list.so how to display a list/array?

Post a Reply

Replies

Oldest  Newest  Rating
0 Dol Lod · August 2, 2015
for i in ["a","b","c"]:
 print i

Pretend the print line is tabbed and that could work.

You could just type print followed by the name of the list and this would also convert the list to a string and print it.

If you thing is not working in the python shell, I don't know how to fix it. 
  • 1

Python

107,121 followers
About

This section is all about snakes! Just kidding.

Links
Moderators
Bucky Roberts Administrator