Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Before the code, they are some code which does the mathematics calculate Without converting, it can run. How can I convert numbers to words for

image text in transcribed

Before the code, they are some code which does the mathematics calculate

Without converting, it can run.

How can I convert numbers to words for this project?

# convert numbers to vords in python words = {0: ''Zero", 1: 'one", 2: "Two", 3. Three", 4Four", 5: "Five", 6: "Soz", 7: "Seven", 8: "Eight", 9: "Mane", words people less_house-words [people less housel words least housewords[least house] words people nore_house -words [people_more housel words more house - vords [more house] 10: "Ten"} print There are, chosen color size, properity and each house costs, chosen color cost) print (Tou can build, house. "house. - str (words_people_less_house). 'will have,str (ords least_house). "and,str (words_people nore house), "ill have. str (vords_more_house) Python 3.7.2 Shell File Edit Shell Debug Options Window Help Python 3.7.2 (tags/v3. 7. 2: 9a3ffc0492, Dec 23 2018. 22: 20: 52) sc v. 1916 32 bit Intel] on vin32 Type "help copyright. credits or "license)' for more infornation. RESTART: C: Users YUDesktopHT02. py Which color block vill rou be building on? orange How nuch noney do you have to spend?333 There are 3 properity and each house costs 100 Traceback (most recent call last) File "C:\Users\YU\Desktop\HV02. , print You can build, house, "house,str (ords people_less house), vill h line 30, in

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

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

Write short notes on Interviews.

Answered: 1 week ago