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
Lady bird [3.3K]
3 years ago
6

In Python, if var1 = "Happy" and var2= "Birthday" and var3 = (var 1+var2) *2, then var3 stores the string

Computers and Technology
1 answer:
nordsb [41]3 years ago
7 0

Answer:

The answer is "Option A".

Explanation:

The program to the given question can be given as:

program:

var1 = "Happy" #defining variable var1

var2= "Birthday" #defining variable var2

var3 = (var1+var2) *2 #defining variable var3 and calculate value

print (var3) #print value.

Output:

HappyBirthdayHappyBirthday

In the above python program, three variable is defined, that is var1, var2, and var3, in which variable var1 and var2 we assign a value, that is "Happy" and "Birthday".

In variable var3 we add the value of var1 and var2 variable and multiply by 2. It will print the variable value two times. and other options are not correct that can be defined as:

  • In option B and C, Both variable var1 and var2 print there values two times but in option B var1 value print two time and var2 value print one time only and option C var1 variable value is print only one time and var2 variable value is print two times that's why it is not correct.
  • In option C, Both variable var1 and var2 print there values two times that's why it is not correct.

You might be interested in
Print ___________ command is used for adding numbers.​
quester [9]

Answer:

phyton is the answer....

5 0
3 years ago
(10101) 2 = ( ? ) 10
expeople1 [14]

\huge\bigstar\:\Huge\tt\underline\blue{ANSWER}

(10101)_2=(21)10

\huge\bigstar\:\Huge\tt\underline\red{EXPLAINATION}

Given : Number  (10101)_2(10101)2

To find : What is the value of  (10101)_2(10101)2 in decimal number system?

Solution :

Decimal number system is a positional numeral system employing 10 as the base.

Now, to convert it into base 10

Multiply each digit of the following binary by the corresponding power of 2:

(10101)_2(10101)2

=1\times 2^4+0\times 2^3+1\times 2^2+0\times 2^1+1\times 2^0=1×24+0×23+1×22+0×21+1×20

=1\times 16+0\times 8+1\times 4+0\times 2+1\times 1=1×16+0×8+1×4+0×2+1×1

=16+0+4+0+1=16+0+4+0+1

=21=21

Therefore,  (10101)_2=(21)_{10}(10101)2=(21)10

5 0
3 years ago
Rather than using a shortcut to find various possible combinations of, Jude systematically lists every possible combination to d
pav-90 [236]

Answer:

An Algorithm

Explanation:

4 0
3 years ago
Write two separate formulas using different commands that concatenate " john and "smith" together to form " John Smith"
VladimirAG [237]

Answer:

1. =CONCATENATE(" John"," ","Smith")

2. =(" John"&" "&"Smith")

Explanation:

Given

Two separate strings; "John" and "Smith"

Required

2 separate formulas to concatenate both strings to form " John Smith"

There are several ways to concatenate strings in Microsoft Office Excel; one of the methods is using the concatenate function while the another method is using the traditional & operator.

Using the concatenate function, the formula is as follows

=CONCATENATE(" John"," ","Smith")

This function will combine the " John", " " and "Smith" to give a new string " John Smith" (without the quotes).

Using the traditional & operator may be a little bit difficult (and not frequently used) but the formula is as follows;

=(" John"&" "&"Smith")

The result will be the same as (1) above

5 0
3 years ago
Plz help ( which is an example of a good URL?
Simora [160]

The answer is B because it is short and simple and gets you to the point

8 0
4 years ago
Read 2 more answers
Other questions:
  • What are 3 characteristics of syndrome E?
    13·1 answer
  • Nonverbal communication relies on _________________. a. multiple channels b. continuous feedback c. ambiguous interpretation d.
    9·1 answer
  • In Rizzati Corp, vice presidents in departments such as engineering, manufacturing, IT, and human resources report directly to t
    15·1 answer
  • The arrow next to all programs indicates
    13·1 answer
  • A computer can function in the absence of software true or false​
    15·2 answers
  • Your job as a researcher for a college is going well. You have gained confidence and skill at pulling data and you are not makin
    13·1 answer
  • Javier is asked to explain to IT management as to why he is suggesting replacing the existing company firewall. Javier states th
    11·1 answer
  • प्रश्न-20 उचित स्थान पर विराम चिह्न लगाइए
    8·1 answer
  • Compare the freedom available to the American media with the freedom available to media in other parts of the world. How does a
    8·1 answer
  • Please answer........
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!