- Esecutori
-
Impara
Impara Python Esempi eseguibili, NumPy, pandas e altro Impara l'IAReti neurali, ML e LLM da zero Impara C e C++ Puntatori, memoria, STL e C++ moderno Impara C#Fondamenti, OOP, LINQ, async ed esercizi .NET Impara MatplotlibGrafici a linee, barre, dispersione e torta con visualizzatori Impara RustOwnership, trait, gestione degli errori e thread Impara GoSlice, interfacce, goroutine e canali Algoritmi Python Ricerca, ordinamento, ricorsione e visualizzazioni O(n) Algoritmi C e C++ Confronta le implementazioni in C e C++ Programmazione per bambini Impara a programmare giocando!
- SfideNuovo
- Per docentiNuovo
- Aggiornamenti
- Offrimi un caffè
Fondamenti di Go
Dal primo programma a variabili, tipi, condizioni, cicli, stringhe, slice, map e funzioni, con una sfida dopo ogni argomento.
1 Primi passi 5 lezioni
- Lezione 2 sfide Hello World and Program Structure Write your first Go program and learn what package main, import and func main do.
- Lezione 2 sfide Variables and Constants Declare variables with var and :=, and fixed values with const.
- Lezione 2 sfide Data Types Work with int, float64, bool, rune and string, and convert between them.
- Lezione 2 sfide Operators and Arithmetic Use arithmetic, comparison and logical operators, and see how integer division works.
- Lezione 2 sfide Reading User Input Read a line from the keyboard and turn it into a number safely.
2 Decisioni 2 lezioni
- Lezione 2 sfide Conditions: if and switch Choose what runs with if, else and switch.
- Lezione 1 sfida FizzBuzz Solve the classic FizzBuzz problem with a switch.
3 Cicli 2 lezioni
- Lezione 2 sfide Loops with for Repeat code with Go's only loop, for, in its four forms.
- Lezione 2 sfide Prime Numbers Check whether a number is prime and list the primes up to 30.
4 Stringhe e testo 2 lezioni
- Lezione 2 sfide Strings Join, search, split and slice text with Go strings and the strings package.
- Lezione 1 sfida Reverse a String Reverse the characters of a string and the words of a sentence.
5 Collezioni 4 lezioni
- Lezione 2 sfide Arrays Store a fixed number of values and see that arrays are copied on assignment.
- Lezione 2 sfide Slices Work with growing lists: append, slicing, make, len and cap.
- Lezione 2 sfide Maps Store and look up values by key with Go maps.
- Lezione 2 sfide Word Frequency Counter Count how often each word appears with a map.
6 Funzioni 2 lezioni
- Lezione 2 sfide Functions and Multiple Return Values Define functions, return more than one value and accept any number of arguments.
- Lezione 2 sfide Fibonacci Sequence Generate Fibonacci numbers with a loop and a slice.