Ask Question
24 November, 12:10

Stuff = []

stuff. append ("emu")

stuff. append ("frog")

stuff. append ("iguana")

print (stuff)

What data type are the elements in stuff?

+5
Answers (1)
  1. 24 November, 15:01
    +1
    stuff [] is a Python Array.

    stuff [] informs python that it is an array and it will create a variable in the memory. However, It doesn't inform anything about data type that being stored in it.

    Following snippet

    stuff. append ("emu")

    stuff. append ("frog")

    stuff. append ("iguana")

    This will add these element information to the end of the array.

    When you print stuff then it will print all the elements of the array. So Now, elements in the array are of datatype string.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Stuff = [] stuff. append ("emu") stuff. append ("frog") stuff. append ("iguana") print (stuff) What data type are the elements in stuff? ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers