Emojicode ๐ For In
Published Aug 4, 2021Updated Sep 9, 2021
Contribute to Docs
The ๐ statement allows you to quickly iterate over an instance, that is repeatedly retrieving values from it until there are no more values to provide.
For example, you can iterate over an ๐จ instance and youโll receive all elements contained in the list.
Syntax
๐ ๐๐ฟ ๐คcookies๐ค ๐คmilk๐ค ๐คeggs๐ค ๐คblueberries๐ค ๐ โก๏ธ grocery๐ item grocery ๐๐ itemโ๏ธ๐๐
The output would be:
cookiesmilkeggsblueberries
In this example, the code block will be repeated for every value of the list and the values are printed. The type of item is naturally ๐ก.
Contribute to Docs
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.
Learn Emojicode on Codecademy
- Looking for an introduction to the theory behind programming? Master Python while learning data structures, algorithms, and more!
- Includes 6 Courses
- With Professional Certification
- Beginner Friendly.75 hours
- ๐ Learn about Emojicode, a programming language that consists of emojis! ๐
- Beginner Friendly.1 hour