0
0
Goprogramming~15 mins

What is Go - Hands-On Activity

Choose your learning style9 modes available
What is Go
๐Ÿ“– Scenario: You are curious about the Go programming language and want to create a simple program that introduces Go to beginners.
๐ŸŽฏ Goal: Build a small Go program that stores a brief description of Go and then prints it out.
๐Ÿ“‹ What You'll Learn
Create a string variable with a description of Go
Create a variable to hold the Go version
Combine the description and version into a message
Print the message to the console
๐Ÿ’ก Why This Matters
๐ŸŒ Real World
Go is widely used for building fast and reliable software like web servers and tools.
๐Ÿ’ผ Career
Knowing how to write basic Go programs is essential for roles in backend development and cloud computing.
Progress0 / 4 steps
1
Create a description variable
Create a string variable called description and set it to the exact text: "Go is an open source programming language."
Go
Need a hint?

Use := to create and assign the variable in one step.

2
Add a Go version variable
Add a string variable called version and set it to the exact text: "1.20"
Go
Need a hint?

Remember to use := to declare and assign the variable.

3
Combine description and version
Create a new string variable called message that combines description and version with a space and the text "version" in between. Use fmt.Sprintf to format it exactly as: "Go is an open source programming language. version 1.20"
Go
Need a hint?

Use fmt.Sprintf to create the formatted string.

4
Print the message
Use fmt.Println to print the message variable to the console.
Go
Need a hint?

Use fmt.Println(message) to print the message.