If anyone is willing to chime in, I am brand new to Python (and all things computer programming). I'm taking an online course and this particular task has baffled me.
First it took me so long to even yield an answer/output that resembled something as possibly correct. Then I'm still doubting my answer/output because I don't know if I read the task correctly, if the task's instructions are written poorly so it's not entirely my fault, or if I'm just messing up altogether.
If anyone would be willing to tell me what they think, did I read the instructions wrong, is there a better way to do what I did (if I happened to be correct), etc., I'd really appreciate it.
Here are the task's instructions, my code, and the answer/output I got ("hi! HI! HEY YOU!"):
Define yell_this() and call with variable argument
-define variable words_to_yell as a string gathered from user input()
-Call yell_this() with words_to_yell as argument
-get user input() for the string words_to_yell
Sincerely,
A super brand new student to programming
First it took me so long to even yield an answer/output that resembled something as possibly correct. Then I'm still doubting my answer/output because I don't know if I read the task correctly, if the task's instructions are written poorly so it's not entirely my fault, or if I'm just messing up altogether.
If anyone would be willing to tell me what they think, did I read the instructions wrong, is there a better way to do what I did (if I happened to be correct), etc., I'd really appreciate it.
Here are the task's instructions, my code, and the answer/output I got ("hi! HI! HEY YOU!"):
Define yell_this() and call with variable argument
-define variable words_to_yell as a string gathered from user input()
-Call yell_this() with words_to_yell as argument
-get user input() for the string words_to_yell
# [ ] define yell_this() def yell_this(phrase = "Hey you"): # [ ] get user input in variable words_to_yell words_to_yell = input().upper() print(words_to_yell + "! " + phrase.upper() + "!") # [ ] call yell_this function with words_to_yell as argument yell_this()answer/output:
Output:hi
HI! HEY YOU!
Sincerely,
A super brand new student to programming