menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Devops News

>

Introducti...
source image

Dev

1w

read

255

img
dot

Image Credit: Dev

Introduction to data analysis with Python: Part 1 - Data types and Variables

  • Data types specify the kind of value/data a variable can hold. They include Integer or int, String or str, Boolean or bool, Float, and Character or char.
  • Variables help us reference a piece of data for later use. They can hold any data type. Rules for variables include starting with a letter, excluding spaces and special characters, and being case-sensitive.
  • Examples of valid variable names are footballers_names, ages45, x, and Food. Examples of invalid variable names are footballers-names, 42age, and snow bunny.
  • To know the value of a variable, use the print function without quotes around the variable name.

Read Full Article

like

15 Likes

For uninterrupted reading, download the app