Search Header Logo
Python Print and Input Statements

Python Print and Input Statements

Assessment

Presentation

Computers

6th - 12th Grade

Hard

Created by

sonal sanghvi

FREE Resource

4 Slides • 0 Questions

1

Python Print and Input Statements

Sonal Sanghvi


Slide image

2

Type Conversions

  • To Convert a data type from one to another

  • Let's say if you want to convert an integer to float you can simply write float(10). It will be now convert that number to 10.0.

  • Similarly, if you want to convert a string to integer, you can do it by typing int("10"). Thus we convert data types from one to another using typecast.

3

Print the data type of any variable or value in Python

To know the datatype of any value or a variable you can simply say type(10). It will return the type of that data as <class 'int'>

4

Python Data Types


Slide image

Python Print and Input Statements

Sonal Sanghvi


Slide image

Show answer

Auto Play

Slide 1 / 4

SLIDE