1- A function in programming is a price of prewritten code that performs an oper
ID: 3573455 • Letter: 1
Question
1- A function in programming is a price of prewritten code that performs an operation. Explain how the python programming language will use a function to display?
2-Python allows us to display multiple items, called arguments, with a single call to the function print. Explain how these arguments are arranged within the () of the print function?
3- Do you think Wi-Fi and other wirless techonogies put us on the brink of a communication revolution? Why or Why not?
4- A function in programming is a piece of prewritten code that performs an operation. Explain how the Python programming language will use a function to display the foolowing statement on the screen:
I am programming.
5- Is Computer programming (like Python) a useful skill for a computeruser? Why or why not?
6-Now that you have experienced computer programming, why do you think it is so diffcult for companies to produce error-free software?
Explanation / Answer
1. A function in programming is a price of prewritten code that performs an operation. Explain how the python programming language will use a function to display?
A function is a block of organized, reusable code or group of code that is used to perform many action.
In Python many pre define function just like built-in functions, just like print() etc. We also define own function according to over requrement and use these function in application, its called user define function.
Here we see simple example :-
1. First we define a function and call this fuction
def hello():
a = 3*2;
print(a)
2. Second we call function
hello();
Now we look process :
First python call function and look in to if function find out then enter in define function.
According to example call hello function. In hello function we define multiply code 3*2 and assign value in a varible.
after multiply we print the a varible.
Print function use for print any value in python.
2. Python allows us to display multiple items, called arguments, with a single call to the function print. Explain how these arguments are arranged within the () of the print function?
*args allow you to pass a multiple number of arguments in any function in python
We use *args when we don't know number of argumants.
we see simple example:-
def mytest(arg, *args):
print ("first normal arg:"+ arg);
print(args);
for arga in args:
print ("item in *args :"+ arga)
mytest('c','python','java','c++')
In this function we pass four argumants. first argumants add in arg and last three in *args
Now first argumants direct print
Second we print second argumants. now print function print all argumants ('python', 'java', 'c++')
Third we print second argumants in loop one by one
Print function print any value according to how we pass in function.
3. Do you think Wi-Fi and other wirless techonogies put us on the brink of a communication revolution? Why or Why not?
Yes its true.
This time it is not wires. After wi-fi many of thing to esay for us. just like now we use internet without cable and its easy to every people. we share any document and file with each other without USB and cable.
it part of a communication revolution. its just start up. In further we see new more techonogies about communication.
4. A function in programming is a piece of prewritten code that performs an operation. Explain how the Python programming language will use a function to display the foolowing statement on the screen:
I am programming.
In python print() function pre define and use for print any value
simple we passs "I am programming" string in print function and it print output on screen
print("I am programming");
5. Is Computer programming (like Python) a useful skill for a computeruser? Why or why not?
If computer user working on development software and hardware and web application. In this case its importent that user know about programing. because without programing knowledge computer user can't handle development related work.
If computer user normal user. In this case if user cant know about programing they handle normal work just like data entery.
6. Now that you have experienced computer programming, why do you think it is so diffcult for companies to produce error-free software?
Every developer not 100% in programing. So if company assign developer working individual in this case some bug(error) come out. Seond thing its depond on project scope, how many big and how its working.
Its better solution if any company working on a project. Before start any project understand project requremwnt and project scope.
And also create good planing about project. If project start with team in this case coompany make software bug free. because when we working in a team in this case if one developer missing some thing then another developer llok into and fix.
Testing also most importent thing in software develpment. each module complete test time to time.
If we follow these type of thing then we make bug(error) free software.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.