Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
43 views
in Computer by (44.8k points)
closed by

Data Types in programming.

1 Answer

+1 vote
by (44.9k points)
selected by
 
Best answer

Depending on the requirement, programming languages offer wide variety of data types to suit the programmers’ needs.

Below are some basic data types available in Python: 

1. Integer 

2. Floating-Point Number 

3. String 

4. Boolean

Integer 

Integer is a data type used to define integer variables. Integers can be of any length. They can be any positive or negative whole number.

Floating-Point Number 

A floating-point number in Python is used to define decimal numbers and is accurate up to 15 decimals places.

String 

A string in Python is a sequence of Unicode characters. It is used to define any form of strings ex. Text, Alphanumeric etc. In Python, we can use single quotes, double quotes or triple quotes to define strings. Multi-line strings in Python can be represented using triple quotes.

Boolean

Boolean data in Python is used to define Boolean variables. Boolean variables can hold only two values in it, either “true” or “false”.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...