π¨βπ»
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // by dave | |
| float[][] result; | |
| float t, c; | |
| float ease(float p) { | |
| p = c01(p); | |
| return 3*p*p - 2*p*p*p; | |
| } | |
| float ease(float p, float g) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #user's input sentence | |
| initial = input('what is your text:? ').strip().lower() | |
| #list containig splited words from the initial | |
| original = initial.split() | |
| #new list will contain all the new translated words | |
| words = [] | |
| for word in original: #logic to translate the word if word starts with vowel | |
| if word[0] in 'aeiou': #interpole 'yay' at the end of it |