Function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Function

I want to make a function that takes in a number, and returns the attached letter. Example 0 = F and 5 = A If over 5, the function returns not valid. Any tips to how one would do this?

14th Oct 2021, 8:23 PM
TJB
3 Answers
+ 1
How 0 = F ?
14th Oct 2021, 8:31 PM
Abhay
Abhay - avatar
0
Lets say I print a number using input, if I then print in 5, I want the fuction to return F
14th Oct 2021, 8:32 PM
TJB
0
0*
14th Oct 2021, 8:33 PM
TJB