Email client as port 25 is the default port for an email server.
Answer:
- def show_students(message, sList):
- print(message)
- print(sList)
-
- print("Our students are currently in alphabetical order")
- sList.sort()
- output = ""
- for student in sList:
- output += "-" + student
- print(output)
-
- print("Our students are currently in reverse alphabetical order")
- sList.sort(reverse=True)
- output = ""
- for student in sList:
- output += "-" + student
- print(output)
-
- show_students("Welcome to new semester!", ["Aaron","Bernice", "Cody"])
Explanation:
Firstly we declare a function that will take two inputs, message and student list (Line 1).
In the function, we first print the message and the original input student list (Line 2 - 3). Next, we use sort method to sort the input list and then output the sorted items from the list using a for loop (Line 5-10).
Next, we sort the list again by setting reverse = True and this will sort the list in descending order (Line 13). Again we use the similar way mentioned above to output the sorted items (in descending order) using a for loop (Line 14 -17)
We test the function using a sample student list (Line 18) and we shall get the output:
Welcome to new semester!
['Aaron', 'Bernice', 'Cody']
Our students are currently in alphabetical order
-Aaron-Bernice-Cody
Our students are currently in reverse alphabetical order
-Cody-Bernice-Aaron
Answer:
master file contains data types while transaction file is used to record Master file
Explanation:
hope it helps
Answer:
name.charAt(0);
Explanation:
Given: 'name' is a variable of type String that has been assigned a value.
To determine: an expression whose value is the first character of the value of name.
Let us assume nae is assigned the value "test". So our expression should return the first character , that is 't'.
In order to do this, we can use the charAt method of String object.
String name="test";
char c = name.charAt(0);
Here 0 corresponds to the index of the character we are interested in.
Answer:
Microsoft Windows - More susceptible to viruses
Linux - Limited support system
Apple - Fewer compatible applications
Explanation:
Generally windows is more susceptible to viruses.
Linux is open source meaning it's up to the community to help you.
Apple has been supporting more applications in these coming years but it still lacks the wide range of apps windows supports.