Lädt...


🔧 July 10, 2024 Python | DataTypes, Variables, Constants


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

This is a series of Python learning blog from parottosalna community by kaniyam foundation

This blog is based on this video Python | DataTypes, Variables, Constants | ParottaSalna"

To watch the full series check this youtube playlist

Contents

  1. Datatypes
  2. Variables
  3. Constants
  4. General Notes

Datatypes:

  • 3 Types of Datatypes

    1. Numeric
      1. Integer
      2. Float / Decimal number
      3. Constants
    2. Text
    3. Boolean Types
      • True, False, None
      • Examples:
        • is_active = true
        • no_of_apples = none
  • Command to check the input type type(26) , Output will be int datatype

  • Everything in Python Language is "Object"

  • Command to see functionalities of a Object dir(26) , Output show the available functionalities as a list.

  • str is the short form of String.

  • Addition of Strings

    • "Vishal" + "J" , The Output will be VishalJ

Variables:

  • Variable is a container to hold the values. And Variables will refer to Object / Value / Data.

  • There are some regulations in variable writing

    1. No symbol in-between
    2. Only start with Characters.
  • Command for Multiple assignment

    • name, age = "Vishal", 20
      • Here is a example of tuple data type
  • Command to print the datatype in a program

    • print(type(name))
  • Running inspect - terminal option in browser to use JavaScript program

  • Commenting is useful to denote what is going in a program

    • To comment single line #
    • To comment multiple lines """Hello world """

Constants:

  • Types of Constants styles

    1. PascalCase
    2. Camelcase
    3. snake_case
  • Google Colab uses Jupiter notebook and into include automatic feature to print texts without print function

  • Book recommendation

    • Byte of Python
  • Quiz's and Tasks for Practising

  • File handling commands

    • Command to create a new file "file.txt" in F folder with program of print("Some content")
      • with open("file.txt", "w") as f: print("some content", file=f)
  • Concatenate make to add two strings as metioned in above before

    • print("Hello" + " World" , the Output will be Hello World
    • print("Hello" , "World") , The Output will be Hello World . Here the the , symbol will add some space between the words.

General Notes

  • By using Books you can use to self study and to advance

  • Note: We can paste images in Zoom chat option

  • To learn JavaScript one must have to know HTML

  • Forums to ask questions

    1. Stack overflow
    2. Chennai mailing list
    3. Tamil Linux Community
...

🔧 July 10, 2024 Python | DataTypes, Variables, Constants


📈 84.11 Punkte
🔧 Programmierung

🔧 PYTHON-FUNDAMENTALS: CONSTANTS, VARIABLES AND DATA TYPES


📈 42.24 Punkte
🔧 Programmierung

🔧 Swift 101: Understanding Types, Variables, and Constants


📈 36.29 Punkte
🔧 Programmierung

🔧 Variables, Shadowing, and Constants in Rust


📈 36.29 Punkte
🔧 Programmierung

📰 Rust Basics Series #2: Using Variables and Constants in Rust Programs


📈 36.29 Punkte
🐧 Unix Server

🔧 Variables and Constants: Declaration and Usage


📈 36.29 Punkte
🔧 Programmierung

🔧 What are Variables and Constants in Go? Explained With Examples


📈 36.29 Punkte
🔧 Programmierung

🔧 Task 2 - Constants and variables


📈 36.29 Punkte
🔧 Programmierung

🔧 10/7/24 - Day 2 - Data types,variables,constants


📈 36.29 Punkte
🔧 Programmierung

🔧 Variables, Constants, Data Types, and Namespaces in C++


📈 36.29 Punkte
🔧 Programmierung

🔧 Static Variables, Constants, and Methods


📈 36.29 Punkte
🔧 Programmierung

🔧 Mastering Go: Guide to Type Declarations, Variables, and Constants


📈 36.29 Punkte
🔧 Programmierung

🔧 Python Basics 2: Datatypes


📈 34.91 Punkte
🔧 Programmierung

🔧 Js | DataTypes |


📈 28.96 Punkte
🔧 Programmierung

🔧 Understanding NumPy: Datatypes, Memory Storage, and Structured Arrays.


📈 28.96 Punkte
🔧 Programmierung

🔧 Best Practice: use the same datatypes for comparisons, like joins and foreign keys


📈 28.96 Punkte
🔧 Programmierung

🔧 Datatypes in C Programming.


📈 28.96 Punkte
🔧 Programmierung

🎥 MySQL 101 - Episode 8 : Datatypes: numbers (English)


📈 28.96 Punkte
🎥 Video | Youtube

🐧 Announcing Converter 1.5, support for batch processing and various image datatypes.


📈 28.96 Punkte
🐧 Linux Tipps

🕵️ An IDA Python script to extract information from string constants


📈 28.31 Punkte
🕵️ Reverse Engineering

🔧 Refactoring instance variables to local variables in Rails controllers


📈 27.87 Punkte
🔧 Programmierung

🕵️ CVE-2024-32021 | Git objects/ hard-coded, security-relevant constants


📈 25.45 Punkte
🕵️ Sicherheitslücken

🔧 Constants, Object.freeze, Object.seal and Immutable in JavaScript


📈 22.36 Punkte
🔧 Programmierung

🔧 Constants in Solidity


📈 22.36 Punkte
🔧 Programmierung

🔧 Code Smell 249 - Constants as Numbers


📈 22.36 Punkte
🔧 Programmierung

🔧 Constants in C++


📈 22.36 Punkte
🔧 Programmierung

🔧 Constants are no longer constant in PHP


📈 22.36 Punkte
🔧 Programmierung

🕵️ Binary ninja equivalent for symbolic constants?


📈 22.36 Punkte
🕵️ Reverse Engineering

🕵️ CVE-2023-1712 | deepset-ai haystack prior 0.1.30 hard-coded, security-relevant constants


📈 22.36 Punkte
🕵️ Sicherheitslücken

🍏 PCalc for iOS and Mac enhanced with new capabilities for functions, conversions, and constants


📈 22.36 Punkte
🍏 iOS / Mac OS

📰 Linux 6.11: Mehr Rust, Torvalds ergänzt "Runtime Constants"


📈 22.36 Punkte
📰 IT Nachrichten

matomo