Skip to main content

Posts

How to create a simple command line calculator using python 3 code

 Hello Everyone. In this blog you are going to see how to create a command line calculator using python 3 . This is the code you can copy - : #calculator which will continue calculating when you won't stop while True:  user = input("Do You Want To Continue Calculation? \n Press y for continue and n for cancel.\n")  if user == 'n':   print("Sorry For Inconvenience.....")         break  elif user == 'y':   print("Calculator Is On")   print("Which Operation You want?\n + = Addition\n - = Substraction \n * = Multiplication \n / = Divide\n")      user_c = input()      first_nu = int(input("Enter The First Number:\n"))   second_nu = int(input("Enter The Second Number:\n"))      add = (first_nu + second_nu)   sub = (first_nu - second_nu)   multiple = (first_nu * second_nu)   div = (first_nu / second_nu)            if user_c == '+':    print(f"The Sum Of two Numbers is. \n{add} ")       if user

How to check the current version running in the Smartphone?

How to check the version running in the android device. Nowadays Android Phone is popular among us but what if we don't know which is the version running?  So in this blog You are going to find the answer how to check the current version of Android. Here's a Screenshot  There's a Section in about phone  " Android Version" Here You can see which is the version of Android running in Your Smartphone. If it's start with 9 it is 9th version of Android As like as if it starts with 10 it is 10th version of Android.. Thank You For reading Comment if you have any Smartphone related problems. Dm me on Instagram   Instagram  https:/instagram.com/praphull_verma?igshid=j9o96on65g90

How to get input from user in python?

 Welcome Guys. In this blog i am going to take you in the world of python ..  If You Want to Take input from user you can use input function which is built in . Here's a code to get input from user //Code user_input = input("Give Your Input?") // You can print this by printing  print(user_input) Hope everyone get that . Comments please  Instagram  - Twitter -  

Comments in python?

If you know a little bit of programming language then You are use to with term "Comments" in programming.. In Python comments are separated by "#" hash symbol. But when you want to use comments for multi lines this can be declared with (  '''  ) three  Quotation marks. Follow  for further updates.. Dm me on Instagram and tell me how you guys want me to continue further. https://instagram.com/praphull_verma12?igshid=ccombbces8ks

How to declare a variable in python? Variable in python|

Welcome back to the course of Python. In previous blog we knew how to print anything in python. In this blog we are going to talk about Variable  in python. What is variable in python?  Variables are like storehouse of the data we want to use for our program. When we add some value in a variable python saves it and it can be use in program. Now the question is how we store anything in variable? The answer is very simple firts we call a variable name and then give some value to them. for example a = "Python" b = 120 And so on Python have 5 types of variable. String Number List Tuple Dictionary But for now we are just going to focus on Numbers and string. Here's a video how to declare a variable in python. Follow me for full course and follow me on Instagram and ask questions  Instagram -  https://instagram.com/praphull_verma12?igshid=1uyrn4ksip94l Give your suggestions in comment box.........

How to use python from Android devices? First program|||| Hello world! Program in python

Hello guys! If you have seen my previous blog "how to run python on Android devices" Link -  https://praphullverma.blogspot.com/2020/06/how-to-run-python-in-android-phone.html?m=1 Then You know how to get started in programming with smartphone! In this blog you are going to make your first program in Python|| The code you are going to enter is - print('Hello, World') For next blog subscribe to my blogger account I'll back soon..

How to run Python in android phone?

Hello Everyone,               Now days Our smartphone became so powerful that we can run any thing on it. Some of the people can't afford laptop or pc for programming. They want to program in their smartphones but they can't find app which is best for running program. Today I am telling you app which runs python beautifully.. App -   https://play.google.com/store/apps/details?id=ru.iiec.pydroid3 You can download this from playstore and this run smoothly on you mobile Device. Here is an example of this--  Subscribe to my channel and I'll upload more practice video of Python. Follow me on Instagram -  https://instagram.com/praphull_verma12?igshid=6otkb0qmkr4q