1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kirza4 [7]
3 years ago
6

A python programmer is writing a function definition. What syntax should be used?

Computers and Technology
1 answer:
Kay [80]3 years ago
8 0

Answer:

<u>Syntax of function in the Python Programming Language.</u>

def function_name():

   '''body of the function or code'''

#calling of the function

function_name()

Note: In Python Programming Language, Indentation is sensitive if you not focus on the indentation then, you program occurs an indentation error.

Explanation:

In Python Programming language, we can use the "def" keyword to define a function then we write the name of the function and then use parentheses for the argument list. "#" is used for the single-line comment and " ''' ''' " is used for the multiple line comment.

A function is the part or module of the program which provides users the feature of reusability of that code anywhere only by calling them.

You might be interested in
Example of negative body language include all but
Paraphin [41]

Answer:

Avoidance of eye contact.

Staring.

Crossed arms.

Overuse of hands.

Looking at watch.

Poor posture.

Frowning.

Sweating.

( but what??)

8 0
3 years ago
What kind of device is hardware capable of transferring items from computers t and devices to trans?
Volgvan
Your answer is:
communications device

I hope this helps! :)
7 0
3 years ago
The domain is the part of an Internet address that refers to a group of computers on a network
mr_godi [17]
If I'm understanding your question correctly, you're asking what part of an IP address is used for the clients on a network? If this is so, then the answer is false. An IP address has two parts, the network bits, and host bits. The network bits are reserved for defining the network subnet mask, while the host bits are reserved for the clients on that network. So for instance if I have a class C subnet of 255.255.255.0, that would mean that the 255.255.255 is my network portion of the subnet, while the .0 is the host portion of my subnet. This would mean that I could have up to 255 hosts on the network (192.168.1.0 through 192.168.1.254).
3 0
3 years ago
Help please appreciate it
Lelechka [254]
D you can change the text box size if you need to include more text
3 0
3 years ago
Create and integrate a script on the registration.html page that stores the input field data into hidden fields to be used in th
Pavel [41]

Answer:

Explanation:

// CAPTURE QUERY STRING VALUES

var urlParams = new URLSearchParams(location.search);

var uid = urlParams.get('userName');

var fName = urlParams.get('firstName');

var lName = urlParams.get('lastName');

var pass = urlParams.get('password');

var email = urlParams.get('email');

var phone = urlParams.get('phoneNumber');

var signUp = urlParams.get('signUpNewsletter');

=====================================

Modified the checkbox control into multiple control

<div>

<select id="interests" name="interests" multiple>

<option value="Technology">Technology</option>

<option value="Music">Music</option>

<option value="Movies">Movies</option>

</select>

</div>

==================================

Added a js function to read multiple input values

function getSelectValues(select) {

var result = [];

var options = select && select.options;

var opt;

for (var i=0, iLen=options.length; i<iLen; i++) {

opt = options[i];

if (opt.selected) {

result.push(opt.value || opt.text);

}

}

return result;

}

==============================

Below is how I create cookie object

ar data =

{

uid:document.myForm.userName.value,

fName: document.myForm.firstName.value,

lName: document.myForm.lastName.value,

pass: document.myForm.password.value,

email: document.myForm.email.value,

phone:document.myForm.phoneNumber.value,

signUp: document.myForm.signUpNewsletter.value,

interests: getSelectValues(document.myForm.interests).toString(),

comment: document.myForm.comment.value,

referredBy: document.myForm.referredBy.value,

};

var dataString = "uid=" + data.uid + ",fName=" + data.fName + ",lName=" + data.lName + ",pass=" + data.pass + ""+ +",email=" + data.email + ",phone=" + data.phone + ",signUp=" + data.signUp + ",interests=" + data.interests + "" + +",comment=" + data.comment + ",referredBy=" + data.referredBy + "";

===========

Make sure you write last line in single line

3 0
3 years ago
Other questions:
  • To increase usability, take care to place important content, such as logos, names, CTAs, and major links, ______ of potential sc
    11·1 answer
  • When converting old html code to xhtml, make sure to replace the ____ attribute with the background-color style?
    10·1 answer
  • Application servers are usually grouped into two types: page-based and _____ systems.
    6·1 answer
  • How do i do to use the cumputer very wel?
    14·2 answers
  • a rule that states each foreign key value must match a primary key value in the other relation is called the
    5·1 answer
  • Gigantic Life Insurance is organized as a single domain. The network manager is concerned that dividing into multiple domains to
    15·1 answer
  • I’m coding a small quiz in python, and I’m just wondering how to keep a score of how much answers the user gets correct. Thank y
    5·1 answer
  • I WILL GIVE BRAINLIEST
    9·1 answer
  • If you wish to install a new OS without disturbing the old one so that you can boot to either OS, what type of boot setup should
    6·1 answer
  • Similarities between incremental and<br> prototyping models of SDLC
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!