🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 2 Min Lesezeit
0

Day 3 - Python

↗ Quelle (dev.to)
🗣️ Stimme:

**



Built-in Data Types :

**

In programming, data type is an important concept.



Variables can store data of different types, and different types can do different things.



Text Type: str

Numeric Types: int, float, complex

Sequence Types: list, tuple, range

Mapping Type: dict

Set Types: set, frozenset

Boolean Type: bool

Binary Types: bytes, bytearray, memoryview

None Type: NoneType



for example




CODE
no1 = 5
print(no1)
print(type(no1))

no2 = ("get a value from user")
print(no2)
print(type(no2))

no3 = 5.5
print(no3)
print(type(no3))







result





5

<class 'int'>

get a value from user

<class 'str'>

5.5

<class 'float'>



Variables :

Variable is a reserved memory location to store values.



for example :



address = " 3, Kosakulam, madurai"

(reference variable

or

identifiers)



= ----> is called Assignment operator



Rules for Python variables:




  1. A variable name must start with a letter or the underscore character

  2. A variable name cannot start with a number

  3. A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )

  4. Variable names are case-sensitive (age, Age and AGE are three different variables)

  5. Do not use any of Python's reserved keywords (e.g., for, if, while, etc.) as variable names.



( 1.Name should be meaningful.

bike_no = 1234

2.Space is not allowed.

bike_no

bikeNo

3.Number are allowed but not in first place.

age1

4.No special character is allowed except _ and $ symbol )



return

The return statement is used to exit a function and send a value back to the caller.



for example




CODE
def add(no1, no2):
print(no1+no2)
return no1+no2


def subtract(no1,no2):
print(no1-no2)
return no1-no2

def multiply(no1,no2):
print(no1*no2)

def divide(no1,no2):
print(no1/no2)


result1 = add(100,50)
result2 = subtract(50,25)
multiply(result1,result2)







result

150

25

3750



pass :

The pass statement is used as a placeholder for future code.



example




CODE
def add(no1, no2):
print(no1+no2)
return no1+no2

def subtract(no1,no2):
print(no1-no2)
return no1-no2

def multiply(no1,no2):
print(no1*no2)

def divide(no1,no2):
pass


result1 = add(100,50)
result2 = subtract(50,25)
multiply(result1,result2)
divide(result1,result2)







result

150

25

3750

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
3 Quellen
GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
1 Quelle
Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
1 Quelle
Major AI platforms go down in unprecedented simultaneous outage
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Day 3 - Python

Thematisch verwandte Begriffe: Python · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...