![]() It's also best to minimise your use of globals where possible - here you can just return the cost and the pizzas they want. Print("Invalid selection, please try again") Name, price = name_price_tuplesĮxcept (TypeError, ValueError, Inde圎rror): Then you can just store which pizzas are selected and how much they cost with selected_pizzas = You could print that out with for idx, (name, price) in enumerate(name_price_tuples):Īlthough you may want to reprint it in certain situations so it might be better to create one string which you can store, like "\n".join(f"" for idx, item in enumerate(name_price_tuples)). A dict would be a good way to do it, or a list of (name, price) tuples. In answer to your main question, you want to be storing the prices as numbers rather than having to parse the strings to get them yourself every time. To make it more difficult they can chose up to 5 pizza. I want to add 8,5 to cost if a normal pizza is chosen and 13,5 to cost if a more expensive one is chosen. Menutype = input("what pizzanumber do you want to add? ") Print ("Press ENTER when you have finished") Print ("Here is the menu, you can pick up to 5 pizza") General CompleteName : D:\Samples\Big Buck Bunny.mkv Format/String : Matroska FormatVersion : Version 4 FileSize/String : 1.56 GiB Duration/String : 10 min 34 s OverallBitRate/String : 21.2 Mb/s EncodedApplication/String: Lavf58.20.100 EncodedLibrary/String : Lavf58.20.100 ErrorDetectionType : Per level 1 Video ID/String : 1 Format/String. I have made a list with menu and there is two different prices. MediaInfo.NET New and alternative a/v containers. DV: timecode trace in HH:MM:SS:FF formatĭownload: MediaInfo 22.06 | 6.2 MB (Open Source)ĭownload: Portable MediaInfo 22.06 (64-bit) | 5.1 MBĭownload: Portable MediaInfo 22.06 (32-bit) | 3.I am doing a program for ordering pizza.TTML: do not show frame rate if it is from MediaInfo options.MXF: Include frame count in SDTI and SystemScheme1 time codes to time stamp conversion.CDP: better catching of wrong line21_field value.MPEG-4/MOV: avoid buggy frame rates by taking frame rate from stts atom.MXF: fix of Dolby Vision Metadata not displayed if HDR10 metadata is present.Dolby Vision: profiles and levels in decimal rather than in hexadecimal.Dolby Audio Metadata: first frame of action in HH:MM:SS:FF format.That said, directly providing the count of chapter is not something we would think as not relevant, well add it for next version. ADM: correctly map Dolby binaural render mode to track UID On the Ubuntu MediaInfo Manpage it specifically states that MediaInfo can get 'Chapters: number of chapters, list of chapters' This manpage was not written by us, so accuracy is not guaranted by us.TTML: Support of more timeExpression flavors.MPEG-4/MOV: support of time codes >30 fps.Text: frame rate precise numerator/denominator also for text streams.NSV: better handling of buggy StarDiva agenda negative timestamps.AAC: check of missing ID_END and incoherent count of channels.Dolby Vision: add info about more profiles.Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF.(Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC.) Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, MPEG-4, DVD (VOB).What format (container) does MediaInfo support? Chapters: number of chapters, list of chapters.Number of streams of this kind available 'StreamKind' NA. Audio: codec, sample rate, channels, language, bitrate. Number of objects available in this stream 'StreamCount' NA.General: title, author, director, album, track number, date, duration.What information can I get from MediaInfo? Localization capability (but volunteers needed).Internationalization: any language display on any version of your Operating System.Integration with MS-Windows shell (drag 'n' drop, and Context menu).Graphical Interface, or Command Line, or DLL.Exporting information as text, CSV, HTML.Different methods of viewing information (text, sheet, tree, HTML.).File data is exportable in a variety of formats including CSV, text and HTML. LabelCode : A 4-digit or 5-digit number to identify the record label, typically printed as (LC) xxxx or (LC) 0xxxx on CDs medias or covers, with only the number being stored. Links are provided to Web locations for download of most video codecs and applications. CatalogNumber : A label-specific catalogue number used to identify the release. MediaInfo provides details about a both video and audio details, including tag information. MediaInfo supplies technical and tag information about a video or audio file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |