embedded system,Arduino,Raspberry pi,ARM7,MM32,STM32,PIC and Python,Django,Datascience and web development
Tuesday, April 6, 2021
input function in python
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 6 22:22:06 2021
@author: Onyx1
#input from the user
#syntax:input()
a=input()
b=input()
print(a+b)
a=int(input("please enter number") ) #string type
b=int(input("please enter number ")) #string type
print(a,type(a))
print(b,type(b))
print(a+b)
a=input("enter your name")
print(a, type(a))
a =float(input("please enter floating values"))
print(a,type(a))
a= int(input("enter number"))
print(a,type(a))
"""
#raw_input------python 2.x version input
doc string in python
"""
#docstring
def basha():
'''
company name:Harish company
author:Harish
program description: addition , substraction, multiplication functions file
date of started:06-04-2021
date modified:08-04-2022
second user:
''''''
print("Basha")
#__doc__ -------> docstring
print(basha.__doc__)
'''
def basha1():
"""
company_name:Harish company
author:Harish
program description: addition , substraction, multiplication functions file
date of started:06-04-2021
date modified:08-04-2022
second user:
"""
print("Basha")
#__doc__ -------> docstring
print(type(basha1))
print(basha1.__doc__)
'''
Subscribe to:
Posts (Atom)
-
How to do the programming python in windows command prompt Step 1: please go through below link website f...
-
Serial.print() Description Prints data to the serial port as human-readable ASCII text. This command can take many forms. Numbers a...