Forum Replies Created
- AuthorPosts
aanya03
ParticipantCan a function have more than 1 argument?
Yes, if can have more than 1 argument if the arguments are placed and combined correctly.Can arguments be stored in variables?
Yes, it can be stored in variables because a function can be assigned in variables.If a function contains more than one argument, do you think the order of the arguments makes a difference? Explain your answer.
Yes, if there is more than one argument, then the difference will affect on the order of the printed function.aanya03
ParticipantIt first ask us to enter our name, then ID number, and the your course name. This is all recorded in this specific sequence which is your name, your ID number, and then your course name. So the input is the name, ID number and Course name, and your output is all of this coming out in a code sequence.
aanya03
Participanta. output:
[‘Abbot’, 78, 79, ‘Barrava’, 97, 86]
b. the commas are being stored
otuput:
[‘Abbot’, 78, 79, ‘Barrava’, 97, 86]
Abbot 78 79 Barrava 97 86print((gradebook[1]+gradebook[2])/2)
= the output is 78.5 this is because 78+79=157/2= 78.5
print(gradebook[0]+gradebook[3])
= the output is AbbotBarrava because the 0 item on the list is Abbot name and third item on the list is Barrava name.
print(gradebook[2]+gradebook[3])
= the output is ah error because it is an name and number together.aanya03
Participantmy list: compoundClass=[“math”,”science”,”history”,”La”,”Thai”]
a. It will show error because the list start from 0. The step compoundClass[5] is out of range.
list after adding another subject: my list: compoundClass=[“math”,”science”,”history”,”La”,”Thai”,”drama”]
b. Now that I add another subject in the list which was drama, it will print “drama” because that is compoundClass[5]
c. If my print statement is compoundClass[-1] my answer will be “drama”
e. If my print statement changes from compoundClass[-1] to cpmpoundClass[-2] then my answer will be “Thai”
f. The positive number starts from the front of the list whereas the negative number start from the back of the list.
g. The who list of the subject is displayed and it looks like [‘math’, ‘science’, ‘history’, ‘La’, ‘Thai’, ‘drama’] this.aanya03
ParticipantThe abbreviation CLI stands for Command Line Interface. CLI allows users to communicate with an operating system by writing instructions in a terminal or console window. Graphical User Interface (GUI) is an abbreviation for Graphical User Interface. The Graphical User Interface (GUI) allows users to communicate with an operating system via visuals.
GUI ADVANTAGES: enable interaction through clarity and quality
GUI DISADVANTAGES: Costly to develop. Implementing a graphical user interface is not an easy process as it seems while using it.
CLI ADVANTAGES: CLI can be a lot faster and efficient than any other type of interface. It can also handle repetitive tasks easily. A CLI requires less memory to use in comparison to other interfaces.
CLI DISADVANTAGES: Commands have to be typed precisely. If there is a spelling mistake then the command will not respond or fail. If user can mis-type an instruction, it is often necessary to start from scratch again.aanya03
ParticipantI will choose macOS since I have been using Mac for past 5 years. The Mac operating system is simple to pick up. When working with a Mac, the convenience of usage is incredible. I will most likely use a Mac once and then never consider switching. The file system is very excellent, allowing you to quickly access anything you require. It has excellent feature and massive use of technology with time to time new updates which is fascinating.
aanya03
ParticipantThe security was bad and that lead to people’s accounts getting hacked. The authentication in banks and the security wasn’t high technology, which made it easier for hackers to hack bank accounts. This should spread as fast as it can, so it can warn other people and maybe banks should make immediate effect on their security as well.
aanya03
ParticipantConstant is the value in programming that cannot be change and replaced with anything, whereas variable is something in programming whose data can be changed during programming.
1. Python
2. Javascript
3. Java
4. C++
5. GoLang
6. C#
7. SQL
8. Dart
9. R
10. PHPThere are different programming languages because each one does a different thing. Programming is some type of nerd thought they could make a better language which effect the modern world and modern needs.
aanya03
Participantdata loss at gitlab was one of the big software failures in this recent years. This was a big company that lost their 300GB and back up plan data did not work. Which now makes us realise that before making any big sort of data company you need to test their back ups and recovery capacity.
aanya03
Participantboth of these ways can be efficient while learning depending on which fits the student more better.
- AuthorPosts