What was the options they gave you?
Answer: M and E
Explanation: Hope this helps
Answer:
- def longest(L):
- for x in L:
- if(len(x) % 2 == 0):
- if(x.endswith("ing")):
- return x
- return ""
-
- print(longest(["Playing", "Gaming", "Studying"]))
Explanation:
The solution is written in Python 3.
Firstly, create a function longest that takes one parameter L as required by question (Line 1).
In the function, create a for loop to traverse through each string in L and check if the current string length is even (Line 2 - 3). If so, use string endwiths method to check is the current string ended with "ing". If so return the string (Line 4-5).
At last, test the function by passing a list of string and we shall get the output "Gaming".
Answer:
Ground Antennas
Explanation:
I got it right on my test
In this exercise we have to have knowledge in computational language in C to write the requested code.
The code is found in the attached image.
We can write the code in a simpler way like:
<em>#include<stdio.h></em>
<em>#include<conio.h></em>
<em>int main()</em>
<em>{</em>
<em> int N, i;</em>
<em> printf("Enter the value of N (limit): ");</em>
<em> scanf("%d", &N);</em>
<em> printf("\n");</em>
<em> for(i=1; i<=N; i++)</em>
<em> {</em>
<em> if(i==N)</em>
<em> printf("%d", i);</em>
<em> else</em>
<em> printf("%d,", i);</em>
<em> }</em>
<em> getch();</em>
<em> return 0;</em>
<em>}</em>
See more about C language at brainly.com/question/19705654