Skip to main content

Bill generator using python||Python practice programs #6|| codeandman (source code)

 hello what's up guys how are you all today in this post I am going to give you the source code of my video called Bill generator using python so let's begin with this awesome post:





# BIll Generator
# prints the name of things in a list and tells the total rate
cond = True
rate = 0
print("Enter quit at any time to quit!")
things_list = []
while cond:
    thing = input("Enter the name of the goods you want buy:");
    if thing.lower() == "quit":
        cond = False
    else:
        main = int(input("Enter the Rate of the goods:"))
        rate = main+rate
        things_list.append(thing)
        pass
print("the total things are:",things_list)
print("The total rate is",rate)

I hope that you liked this post.

Don't forget to like, share and subscribe to this video and also share this post

Thank You.

Comments

Popular posts from this blog

Codes Post - Code And Man

Movie Post Code <div class="post-movie-details">      <div class="hide-this-on-index">   <div class="movie-details-insidepost">     <div class="moviethumbnail">       <!--MOVIE POSTER-->  <img alt="Mastaney" src="https://image.tmdb.org/t/p/w300/8vrlTSiMcNlnCQn6oNcgbbKbSn3.jpg" />             </div>     <div class="moviestoryline">       Mastaney is a 2023 Indian Punjabi-language historical action drama film. It stars Tarsem Jassar and Gurpreet Ghuggi with Simi Chahal and Karamjit Anmol in supporting roles. Set in 1739, Nader Shah's undefeated army was attacked by Sikh rebellions. Nader demands to arrest them but it doesn't work out. Five ordinary men are hired to play Sikh rebels but over time they learn what Sikhs are.     </div>   </div>        <div class="movietechdetails"...

Arrays and conversion in Javascript || javascript complete course || #7 (sourcecode)

hey guys how are you all today in this post I am going to give you the source code of my video called arrays and  conversion in JavaScript so let's begin:- // ARRAYS in javascript console . log (" This is arrays in js ") var arr1 = [ 32 , 34 , 23 , 23 , 234 ," this ", {     name:" Gautam ",     class : " 8th ",     rollno: 6 } ] console . log ( arr1 ) console . log ( arr1 [ 5 ]) console . log ( arr1 .length) console . log ( arr1 . concat (' main ')); console . log ( arr1 ); // // ---------------------------------------------------- // CONVERSION IN JAVASCRIPT // Converting in to strings var num1 = 45 ; console . log ( num1 ); var str1 = String ( num1 ); console . log ( str1 ); console . log ( typeof str1 ); console . log ( typeof num1 ); var number1 = 33453434 ; console . log ( number1 , typeof number1 ); var string1 = number1 . toString (); console . log ( string1 , typeof string1 ); // ----------------------------...

Step by step guide to coding a game in Python

  How to Code a Simple Game in Python Python is a powerful and versatile programming language that can be used for a wide range of applications, including game development. In this tutorial, we will be creating a simple game using the Pygame library in Python. Pygame is a set of Python modules designed for writing video games. It provides functionality for creating 2D graphics, handling events, and playing sounds and music. By the end of this tutorial, you will have a basic understanding of how to create a game using Pygame and Python. Setting up the Development Environment Before we can start coding our game, we must set up our development environment. To do this, we will need to install Python and the Pygame library. If you already have Python installed on your machine, you can install Pygame by running the following command in your terminal: pip install pygame If you don't have Python installed, you can download the latest version from the official Python website. Once you have ...