Hactober2022
Hactober2022 copied to clipboard
To build flashcard using class in Python
Approach :
-> Take the word and its meaning as input from the user. -> Create a class named flashcard, use the init() function to assign values for Word and Meaning. -> Now we use the str() function to return a string that contains the word and meaning. -> Store the returned strings in a list named flash. -> Use a while loop to print all the stored flashcards.
Please follow the owner's GitHub account and star this repo.