Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 824 Bytes

dduVbaCheatsheet.md

File metadata and controls

35 lines (31 loc) · 824 Bytes

Python Cheat Sheet

Table of Contents

Introduction

Python is a versatile and beginner-friendly programming language.

Variables and Data Types

Python supports various data types:

  • int: Integer values (e.g., 42)
  • float: Floating-point values (e.g., 3.14)
  • str: Strings (e.g., 'Hello, World!')
  • bool: Boolean values (True or False)

Control Structures

if-else Statements

x = 10
if x > 5:
    print("x is greater than 5")
else:
    print("x is not greater than 5")

Control Structures

if-else Statements

end