Begin to Code with Python Made Easy For Beginners - python programming for beginners by khalil khalil

Begin to Code with Python Made Easy For Beginners - python programming for beginners by khalil khalil

Author:khalil, khalil [khalil, khalil]
Language: eng
Format: epub
Publisher: UNKNOWN
Published: 2020-05-20T16:00:00+00:00


What you will learn

In the previous chapter, we discovered how to create genuinely useful objects. We saw how to use Python to create classes that can hold and manage data values and provide methods that allow programs to make use of them.

In this chapter, we’ll build on our class knowledge to learn how to build systems that work with large numbers of different, but related data items. We’ll also explore how we can connect objects via the methods they expose. Alongside all this, we’ll discover more features and functions of Python, including sets.

Fashion Shop application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .374

Create aFashionShop component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .410

Design with classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .421

Python sets ..........................................................422

What you have learned . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .434 373

Fashion Shop application

Your lawyer client is very happy with her Time Tracker application. She’s been showing it to her friends, and they’ve been very impressed—particularly a friend who runs a fashion shop and has been looking for an application to help her manage her stock. She sells a large range of clothing items and needs help tracking inventory. Stock arrives from suppliers, and she enters the details in the system. When she sells an item, she wants to remove it from stock. She would also like a way of producing reports that will show her how many of each item she has in stock. She’s keen to get your help, and she’s offering discounted prices, or even free clothing, in exchange.

Free fashion sounds like an interesting idea, so you sit down with your new client and talk about what she wants to do. She shows you her stock folder, which you can see in Figure 11-1 .

Figure 11-1 Fashion shop stock file

She tells you that each item she receives from her suppliers has a unique stock reference that she uses to track that item. She has a large binder with a page per stock item. When she gets something she hasn’t stocked before, such as a new style of dress, she creates a new page for that type of item and adds it to the folder.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(55903)
What's Done in Darkness by Kayla Perrin(26518)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(19002)
The Fifty Shades Trilogy & Grey by E L James(18955)
Shot Through the Heart by Mercy Celeste(18877)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(16978)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(16869)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(16799)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16693)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16318)
The Subtle Art of Not Giving a F*ck by Mark Manson(14251)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(14069)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(13416)
Scorched Earth by Nick Kyme(12710)
Drei Generationen auf dem Jakobsweg by Stein Pia(10919)
Suna by Ziefle Pia(10843)
Scythe by Neal Shusterman(10265)
International Relations from the Global South; Worlds of Difference; First Edition by Arlene B. Tickner & Karen Smith(9473)
Successful Proposal Strategies for Small Businesses: Using Knowledge Management ot Win Govenment, Private Sector, and International Contracts 3rd Edition by Robert Frey(9314)
This is Going to Hurt by Adam Kay(9091)