lundi 9 octobre 2023

How do you ask the user for the English translation? [closed]

I have created two lists, one with 10 Maori words and one with 10 English words (the translations). I need to generate a random Maori word and have the program ask the user for its English translation.

Here's what I have so far:

MaoriWords = [motu, awa, wai, ihu, kai, kanikani, mahi, waiata, ako, moe]
EnglishWords = [island, river, water, nose, food, dance, work, song, learn, sleep]

from random import randint
import random

x = random.MaoriWords(0,9)
print(x)



Aucun commentaire:

Enregistrer un commentaire