In the RGB (Red, Green, Blue) color model, the numbers 0-255 represent the intensities of each color beam
.Each number represents an intensity value is on a scale of 0 to 255, It can be also written in hexadecimal form, from 00 to FF.
RGB values are encoded as 8-bit integers, which range from 0 to 255.
Answer:
#HERE IS CODE IN PYTHON
#function to find length of shortest and longest string in the array
def fun(list2):
#find length of shortest string
mn=len(min(list2))
#find length of longest string
mx=len(max(list2))
#return both the value
return mn,mx
#array of strings
list2 = ['Ford', 'Volvo', 'BMW', 'MARUTI','TATA']
# call the function
mn,mx=fun(list2)
#print the result
print("shortest length is:",mn)
print("longest length is:",mx)
Explanation:
Create an array of strings.Call the function fun() with array as parameter. Here min() function will find the minimum string among all the strings of array and then len() function will find its length and assign to "mn". Similarly max() will find the largest string and then len() will find its length and assign to "mx". Function fun() will return "mn" & "mx".Then print the length of shortest and longest string.
Output:
shortest length is: 3
longest length is: 5
The thing that happens if you type a number instead of a word in the given code is: The number is printed
This is because the code already assigned a variable to the input and it accepts both numbers and alphanumeric keys because it is an integer command.
<h3>What is Coding?</h3>
This refers to the use of programming that is used to give instructions to a computer system
Hence, we can see that The thing that happens if you type a number instead of a word in the given code is: The number is printed
This is because the code already assigned a variable to the input and it accepts both numbers and alphanumeric keys because it is an integer command.
Read more about coding here:
brainly.com/question/16397886
#SPJ1
17, 12.5, 6, and 10. HOPE THIS HELPS