key and value printed

This commit is contained in:
Mert Gör 🇹🇷 2024-01-17 12:41:04 +03:00
parent 92f7c99f08
commit 3a84e5fd98
Signed by: hwpplayer1
GPG key ID: 03E547D043AB6C8F
2 changed files with 13 additions and 0 deletions

12
examplerange/demo3.go Normal file
View file

@ -0,0 +1,12 @@
package examplerange
import "fmt"
func Demo3() {
my_dictionary:= map[string]string{"book":"kitap", "table":"masa"}
for k,v := range my_dictionary {
fmt.Println(k)
fmt.Println(v)
}
}

View file

@ -42,4 +42,5 @@ func main() {
maps.Demo1() maps.Demo1()
examplerange.Demo1() examplerange.Demo1()
examplerange.Demo2() examplerange.Demo2()
examplerange.Demo3()
} }