Answers

Answer 1

Answer:

See below.

Explanation:

To learn python programming language, first, you have to know the basic. Surely, you may recognize this function namely print()

print(“Hello, World!”) — output as Hello, World!

First, start with familiarizing yourself with basic function such as print. Then step up with arithmetic and declare or assign variable then list.

Here are example of functions:

1.) print(argument) — If argument is a string (word-typed), make sure to use “” or ‘’ or else it’ll output an error and say the argument is not defined.

print(“Hi, Brainly”) will output Hi, Brainly

print(2+3) will output 5

Numerical data or numbers do not necessarily require “ “ or ‘ ‘

print(3+3) will output 6 but print(“3+3”) will output 3+3 which is now a string.

2.) type(argument) - this tells you which data/argument it is. There are

< class ‘str’ > which is string, meaning it contains “ “ or ‘ ‘< class ‘int’ > which is integer< class ‘float’ > which is decimal (20.0 is also considered as float, basically anything that contains decimal is all float type)< class ‘list’ > which is a list. List is something that contains elements within square brackets [ ]

etc.

Make sure you also do print(type(argument)) as well so it will print out the output.

3.) Arithmetic

+ is addition

Ex. print(1+3) will output 4

   2. - is subtraction

Ex. print(5-4) will output 1

   3. * is multiply

Ex. print(4*5) will output 20

   4. ** is exponent

Ex. print(5**2) will output 25

   5. / is division

Ex. print(6/3) will output 2 — sometimes will output the float type 2.0

   6. % is modulo or remainder

Ex. print(7%2) will output 1

4.) Variables

To assign a variable, use =

An example is:

x = 2

y = 5

print(x+y) will output 7

print(type(x)) will output the < class ‘int’ >

These are examples of what you’ll learn in basic of python - remember, programming depends on experience and always focus on it. Keep practicing and searching will improve your skill at python.


Related Questions

User ideas for ro blox? I prefer no numbers or underscores.

Answers

do what the other person said

Other Questions
Convection currents will transfer heat throughout a gas until what condition arises?A.The gas condenses and forms a liquid.B.The gas particles stop moving entirely.C.The gas has the same temperature throughout.D.The gas has no thermal energy in it. Please help me with this. Quadrilateral GHIJ is dilated by a scale factor of 22 to form quadrilateral G'H'I'J'. What is the measure of side H'I'? Help me please please If I played at 2am and for my friend his time 8am so now if it 6pm for me now , what time is it for him? Hint For him will be Am In a recent academic year, many public universities in the United States raised tuition and fees due to a decrease in state subsidies. The change in the cost of tuition, a shared dormitory room, and the most popular meal plan from the previous academic year for a sample of 10 public universities were as follows: $1,589, $593, $1,223, $869, $423, $1,720, $708, $1,425, $922 and $308.a. What is the mean and median change in the cost? (Explain how you obtain your answer.)b. What is the five-number summary of the change in the cost? (Explain how you obtain your answer.)c. What is the standard deviation of the change in the cost? (Explain how you obtain your answer.)d. The middle 50% of the change in the cost is spread over what value? (Explain how you obtain your answer.)e. What is the coefficient of variation of the change in cost? (Explain how you obtain your answer.)f. What are the (absolute values of) the Z scores of the change in cost? Which expressions are equivalent to - 6z +(-4.5) + 2.5z + 5y -3.5?Select all that apply.A. - 8 + 5y +3.52B. - 3.5z + 5y - 8C. - 8 + 5y +(-3.5z)OD. 5y - 8 -3.52E. 5y + (-3.52) - 4.5Pls help The points (4, 1) and (x, -6) lie on the same line. If the slope of the line is 1, what is the value of x? 7. Which of the following systems is NOT found in a flatworm:a. Digestive systemb. Respiratory systemc. Nervous systemd. All of the above An eagle eats about 1 bound of food in 1 day. A crow eats about 3 pounds of food in 2 days which bird eats more more food per day. Help rn ahhhh please Newtons law of motion A Manuel le encanta el chocolate. En su pas, Manuel paga diez bolvares por un chocolate. Manuel compra tres chocolates. Manuel no tiene dinero para comprar refrescos. La mam de Manuel paga cinco bolvares por la limonada.Based on the dialogue, where is Manuel? En Chile En Mxico En Honduras En Venezuela Please answer the questions attached below Help math plzshnsndnfjc simplify by distributive property 8-3(7m-3p) There are 14 penguins on the rocks. Half as many are swimming. How many are in the water? How many in all? Where do the nutrients go that decomposers recycle from dead plant and animalmatter? What is the worst thing you have ever eaten?I NEED EXAMPLES! GIVING POINTS :)! 9. What advantage is there to having "blind" subjects in an experiment?O The subjects know what groups they are in, so they can behave the way the experimenter predicts.There is no subject bias because they do not know which group they belong to.There is no experimenter bias because they do not know which groups the subjects belong to.The experimenter will not know the role of each of the members of the experiment.