Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Coding in python, sos def miles_to_kilometers): Ask the user for a distance in miles and print the equivalent distance in kilometers. NOTE: 1 mile is

Coding in python, sosimage text in transcribed

def miles_to_kilometers): Ask the user for a distance in miles and print the equivalent distance in kilometers. NOTE: 1 mile is about 1.609km def kilometers_to_miles): Ask the user for a distance in kilometers and print the equivalent distance in miles NOTE : 1km is about 0,621 miles def atom_info): It should ask the user to enter an atomic number and an atomic mass for an atom. Given that information, it should print out the number of neutrons and protons that atom has. - The number of protons that an atom has is equal to its atomic number - The number of neutrons in the atom can be found by subtracting the atomic number from the atomic mass number. (atomic number, proton count, and neutron count) will be ints. You can do this by using the round function. - The atomic mass number will be a float while all the others - The mass number should be rounded when doing the calculations. Use the help function to figure out the round function works def atom_ions (): Ask the user for the proton and electron counts and see if it's an ion An atom is an ion if the number of protons doesn't match the number of electrons. Print out whether or not the atom is ionic or neutral, as well as the atom's charge. The charge of an atom is the number of protons minus the number of electrons. def longest word (word1, word2)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Spatial And Temporal Databases 11th International Symposium Sstd 2009 Aalborg Denmark July 8 10 2009 Proceedings Lncs 5644

Authors: Nikos Mamoulis ,Thomas Seidl ,Kristian Torp ,Ira Assent

2009th Edition

3642029817, 978-3642029813

More Books

Students also viewed these Databases questions

Question

How is the number of factors decided in most EFA programs?

Answered: 1 week ago

Question

1. Understand how verbal and nonverbal communication differ.

Answered: 1 week ago