Greek symbols

Report a typo

You get a string of Unicode characters as input.

Your task is to print the value true if any of the characters are written in Greek. If the string does not contain Greek characters, print the value false.

Tip: To determine if a character is Greek, you need to use the unicode.Greek variable of the unicode package.

Sample Input 1:

eEΣ

Sample Output 1:

true
Write a program in Go
package main

import (
"fmt"
"unicode"
)

func main() {
var word string
fmt.Scan(&word)

isGreek := false
for _, char := ? word {
if unicode.?(char, ?) {
isGreek = true
break
}
}

if isGreek {
fmt.Println(?)
} else {
fmt.Println("false")
}
}
___

Create a free account to access the full topic