Python daily dose (republished)
Hello there, welcome to python daily dose
So some of you guys asked me to add more content on my daily dose. Thus I republished it again for you guys. As everyone knows the print statement (If not please visit my last post), So I will now teach you about variables and input in python :)
So variables are just made to store values. For example you wanted to store your credit card number in python. How will you do it? That's where it comes in handy.
So you can do it like:
Here, mynumber is a variable and 12344321 is the data stored in it
*Do you know? We can also use the print command in the variables :)
Here is a example
So as you got it, Let's go to the input command.
So if, you wanted that your program should ask you a question and you can reply it. How will you do it? Well, here is the answer:
I will use the input() fuction in python. But how?
Here is the Syntax
So you can even say that what to do if input greater than or smaller than a number, What would I do if I want to temporarily store the input data, what if I wanted to give result after the input? You will see that tommorow at the python daily dose.
If you have any problems,questions or feedback, write it down in the comments. Currently I cannot zoom the code so if you still have any problem seeing the code, feel free to write it down in the comments
See you in the next Daily dose ;)