Menu

Every programming journey starts with Hello World. In bubblecode, you use the say command to display text.

The say command

say prints a value to the screen followed by a new line. Anything in double quotes is treated as text (called a string).

hello.bubble

That’s it — one line and you’ve written a program! Try changing the text inside the quotes and running it again.

Printing multiple lines

You can use say as many times as you want. Each one prints on a new line.

multi.bubble

Comments

Lines starting with -- are comments. They’re notes for humans — bubblecode ignores them completely.

comments.bubble

Comments are handy for explaining what your code does or temporarily disabling a line.

Exercise

Exercise

Write a program that prints "I am learning bubblecode!" on the first line and "This is fun!" on the second line.

exercise.bubble

Quiz

Question 1 of 3

Which command prints text to the screen in bubblecode?