Python#04 || Input/Output and Type Convertion in Python || AI course || Type casting in python
Link to the complete python course playlist :
• Python full course by AInnovatrix
Python Series Assignment 03
Answer all the questions in the comment section :
1. Take input from user by showing any prompt from the user for atleast 5 datatypes.
2. In the above question print the input read from the user in the console with its data type.
3. What is the use of help() ?
4. write a program in python to calculate the Simple Interest by taking principal, rate of interest and time period as user input and using the formula simple interest = (principal * rate of interest * time period)/100.
5. write a program in python to take user input of two numbers and print their sum in the console.
6. write a program in python to convert celcius to farenheit and farenheit to celcius.
7. Predict the output :
side = int(input('side')) #side given as 4
area = side*side
print(side,area)
8.What is the problem in the code given below, which is written to print the double value of any number(integer), write its correct code :
Number = input('Enter Number : ')
DoubleTheNumber = Number * 2
Print(DoubleTheNumber)
9. What is the use of 'sep' and 'end' parameter, explain by taking an example.
10. What is the code to print (use sep and end parameter in print) :
i) 2*3 = 6
ii) 5+4+7+8+10 = 34
In this lecture, I have discussed about input, output and type conversion in python and have also explained the use of help function.
input()
print()
int()
float()
complex()
str()
bool()
help(),etc.
#ai #aicourse #python #pythonprogramming #pythonprogramming
Python
varible
variables
assignment
variable in python
Python complete course
Python full course
Python course by Ainnovatrix
History of Python
Advantages of using python
Disadvantages of using python
Interpreter vs compiler
How to install python
How to install pycharm
IDE for coding in python
ainnovatrix
ai
data science
machine learning
literals
tokens
string
integers
float
comment
variables
variable
variable assignment
On this page of the site you can watch the video online Python#04 || Input/Output and Type Convertion in Python || AI course || Type casting in python with a duration of hours minute second in good quality, which was uploaded by the user Ainnovatrix 24 July 2023, share the link with friends and acquaintances, this video has already been watched 34 times on youtube and it was liked by 3 viewers. Enjoy your viewing!