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
OlgaM077 [116]
3 years ago
8

15. Write a program in python to read three numbers in three variables and swap first two variables with the sums of

Computers and Technology
1 answer:
ivann1987 [24]3 years ago
4 0

Answer:

a = int(input("Enter first number: "))

b = int(input("Enter second number: "))

c = int(input("Enter third number: "))

a,b = a+b,b+c

print(a,b,c)

Explanation:

Assignments like this are easy in python, in the sense that no helper variables are needed!

You might be interested in
Write a Console program, let users to enter prices calculate subtotal, tax, and total.
Phantasy [73]

Answer:

Explanation:

This is a project I already submitted, but I never received feedback. All my upcoming assignments will be based on this, so I wanted to make sure it is correct. I got this program to work as far as calculating the information, but I was hoping someone could please let me know if it meets the parameters/requirements?

I did attempt it. It works and adds the items exactly how the example showed in the video. However, I wanted to make sure my code is solid, and not just a mishmash or working because I got lucky, and if there is a better more solid way to do this I want to make sure I can. I do want feedback so I can learn and get better and I am trying my hardest. I always right out all the code I see here and try it and learn what it does piece by piece, because it helps me learn and improve. I also want to make sure it is going to work once I start the code for the next half of the requirements.

i cant really help they dont let us put codes on here

6 0
3 years ago
5 The following text is stored as a text file:
WARRIOR [948]

Lossless compression decreases file size without removing any bits of information. Instead, this format works by removing sameness within data to reduce the overall file size. With lossless, it is possible to perfectly rebuild the original file.

<h3>What utilizes lossless compression?</h3>

Lossless compression is commonly used for so-called "discrete" data, such as database records, spreadsheets, word-processing files, and even some types of image and video information. Text compression is a powerful area for lossless compression.

<h3>What is lossless compression example?</h3>

Lossless compression methods are reversible. Examples of lossless reduction include GZIP, Brotli, WebP, and PNG, Lossy compression, on the other hand, uses inexact approximations by dumping some data from the original file, making it an irreversible compression process

To learn more about Lossless compression, refer

brainly.com/question/17266589

#SPJ9

3 0
2 years ago
What are human made materials ?​
jok3333 [9.3K]

Answer:

Natural materials may include wood, cotton, fur, or wool. Human-made materials may include plastic, rubber, glass, and Styrofoam.

4 0
2 years ago
Dear Students; You are given three classes, BankAccount , ManageAccounts and LisaSmith ManageAccounts is called a Driver class t
Ad libitum [116K]

Answer:

$51.98

Explanation:

8 0
3 years ago
What is Data validation? (in a simple definition)
dlinn [17]
Verify data, something like this

var username = document.getElementById("input1").value

var password = document.getElementById("input2").value

// this is the validation:
if ( username == "anime" && password == "Anime132" ){
alert("Correct login data");
} else {
alert("Wrong login data");
}
7 0
3 years ago
Read 2 more answers
Other questions:
  • What is the term for the era created by the digital revolution?
    11·1 answer
  • Your grandmother was an established artist and left you several original paintings after she died. Which of these statements is
    6·1 answer
  • Which technology can be used as a defense against dos and ddos syn flood attacks?
    14·1 answer
  • Windows _____ is a system notification utility and gives quick access to settings for items like screen brightness and network c
    8·1 answer
  • Write on the importance of Computer application to statistics​
    6·1 answer
  • The site is not allowing me to purchase the subscription. Please help?
    12·1 answer
  • A power supply serves as both a rectifier and transformer to convert AC house current to DC and to step down voltage from 110 V
    6·1 answer
  • I’ll mark brainlest
    14·2 answers
  • How much weight does a headgear need to carry
    9·1 answer
  • _____ is a higher-level, object-oriented application interface used to access remote database servers
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!