Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungWhat is Programming And How i can Enjoy it?(24.09.2026 um 11:54 Uhr)
Sichere ProgrammierungYou Don't Need Adobe Commerce Cloud to Survive Black Friday(24.09.2026 um 11:55 Uhr)
Malware / Trojaner / VirenBeyond Lazarus: Organization of DPRK cyber capabilities(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenBeyond Lazarus: Organization of DPRK Cyber Capabilities(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenThe fake worker threat and the rise of human infiltration(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenPolinRider Spreads Through Compromised GitHub Accounts and Packagist(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenWeaselBiscuit Strips BeaverTail and OtterCookie Down to Essentials(24.09.2026 um 11:59 Uhr)
Sichere ProgrammierungWhat is Programming And How i can Enjoy it?(24.09.2026 um 11:54 Uhr)
Sichere ProgrammierungYou Don't Need Adobe Commerce Cloud to Survive Black Friday(24.09.2026 um 11:55 Uhr)
Malware / Trojaner / VirenBeyond Lazarus: Organization of DPRK cyber capabilities(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenBeyond Lazarus: Organization of DPRK Cyber Capabilities(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenThe fake worker threat and the rise of human infiltration(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenPolinRider Spreads Through Compromised GitHub Accounts and Packagist(24.09.2026 um 11:59 Uhr)
Malware / Trojaner / VirenWeaselBiscuit Strips BeaverTail and OtterCookie Down to Essentials(24.09.2026 um 11:59 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Python Day- 10 Looping

While Loop: Example:1 no = 1 while no<=5: print(no, end=' ') no+=1 Output: 1 2 3 4 5 Example:2 1) 1 2 3 4 5 6 7 8 9 10 2) 1 2 3 4 5 6 7 8 9 10 3) 10 9 8 7 6 5 4 3 2 1 4) 1 3 5 7 9 5) 2 4 6 8 10 6) 3 6…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

While Loop:

Example:1




no = 1
while no<=5:
print(no, end=' ')
no+=1







Output:




1 2 3 4 5 






Example:2



1) 1 2 3 4 5 6 7 8 9 10

2) 1 2 3 4 5 6 7 8 9 10

3) 10 9 8 7 6 5 4 3 2 1

4) 1 3 5 7 9

5) 2 4 6 8 10

6) 3 6 9




#1 2 3 4 5 6 7 8 9 10
no = 1
while no<=10:
print(no, end=' ')
no+=1

print(end='\n')

# 10 9 8 7 6 5 4 3 2 1
no = 10
while no>=1:
print(no, end=' ')
no-=1

print(end='\n')

# 1 3 5 7 9
no = 1
while no<=10:
print(no, end=' ')
no+=2

print(end='\n')

#2 4 6 8 10
no=2
while no<=10:
print(no, end=' ')
no+=2

print(end='\n')

# 3 6 9
no = 3
while no<=10:
print(no, end=' ')
no+=3






Output:




1 2 3 4 5 6 7 8 9 10 
10 9 8 7 6 5 4 3 2 1
1 3 5 7 9
2 4 6 8 10
3 6 9






Example:3 (using *)




no = 1
while no<=5:
print(no*3, end=' ')
no+=1






Output:




3 6 9 12 15






Example:4(5 tables-->1*5=5 upto 10*5=50)



Input can be given in 2 ways,



Input: 1




no = 1
while no<=10:
print(no,"*5=",no*5, end='\n')
no+=1







Input: 2 (Using f string-formatted string literal)

-->A formatted string literal or f-string is a string literal that is prefixed with f or F.

-->Expressed using curly braces {}.

-->It is used to look at the values , expressions or instance inside {} and substitute them with the variables values or results.




no = 1
while no<=10:
result=no*5
print(f'{no} * 5 = {result}')
no+=1






Output of both inputs:




1 * 5 = 5
2 * 5 = 10
3 * 5 = 15
4 * 5 = 20
5 * 5 = 25
6 * 5 = 30
7 * 5 = 35
8 * 5 = 40
9 * 5 = 45
10 * 5 = 50







Example:5




#1  2   3   4   5   5   4   3   2   1

no = 1

while no <= 5:
print(no, end=" ")
no += 1

no = 5
while no > 0:
print(no, end=" ")
no -= 1






Output:




1 2 3 4 5 5 4 3 2 1






Example:6




#1  3   5   7   9   2   4   6   8   10

no = 1
while no<=10:
print(no, end = ' ')
if no==9:
no = 0
no+=2






Output:




1 3 5 7 9 2 4 6 8 10


SOC Incident Playbook: Vulnerability Remediation & Verification
title: Detect Exploitation - Python Day- 10 Looping
id: cf964b06-30db-46e0-9afd-96263686591f
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-24
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-24"
        description = "YARA Signature for "
    strings:
        $str = "Python Day- 10 Looping" ascii wide
    condition:
        any of them
}
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Kognitive Analyse für identifizierte Bedrohung: Erhöhte Bedrohungslage im Bereich Python Day- 10 Looping.... Basierend auf 368k Vektor-Korrelationen werden sofortige Isolationsmaßnahmen für betroffene Endpunkte empfohlen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
🔗 Semantisch verwandte Zero-Days MariaDB 11.7 VEC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Python Day- 10 Looping

Thematisch verwandte Begriffe: Python, Looping · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY Kritische Sicherheitsmeldung
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel TTP ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick