Answer:
def language(mystring, n):
if n > 0:
string_list = [x for x in mystring]
string_cont = ""
for character in string_list:
string_cont += character * n
print(string_cont)
Explanation:
When n is equal to 0, that is, n=0, The python program multiplies the characters of the string "mystring" by the integer variable "n" to output a string with all characters with the same count.
Answer:
The function usernameMaker.
Explanation:
strFirst is a local variable in the function usernameMaker since it is an argument that is passed into that function. This means that the scope of strFirst is the function usernameMaker, since it cannot be accessed anywhere else in the code.
Hope this helps :)
Answer:
1. Open the form in the standard form view.
2. Put the cursor in the field to use for sorting.
3. Open the Home tab
4. In the Sort & Filter group, click ascending or descending
Explanation:
Took the test :)
Answer & Explanation:
//written in java
public class Main {
private static void printOdd(int[] list) {
for (int value : list) {
if (value % 2 == 1) {
System.out.println(value);
}
}
}
public static void main(String[] args) {
printOdd(new int[]{5, 6, 2, 3, 11, 4, 7});
}
}
Answer: A) Steve Andrew Kevin
B) Alex Joe Matt C) Sally Heather Barbie D) Tim Tim Tim
Explanation: