oded.dev

Oded Lazar

I code during the day, and think about the bugs I created at night.

Israel ABOUT
100 posts
47 tags

python's else clause in loops - huh?

2014-07-28
programming
python

did you know you can write a loop followed by an else clause?

n = 5
while n != 0:
print(n)
n -= 1
else:
print("???")

what does that mean really?

take a few minutes and read this.

Share
Newer
processing queued netfilter packets with scapy
Older
linux command basics

recent

  • Working from Home + Corporate VPN

    2021-02-22

  • hacking

    AX3600 - Post #1

    2020-11-30

  • hacking

    AX3600 - Post #0

    2020-10-23

  • devops

    Getting an Accurate Weather Forecast using Wi-Fi Position System

    2018-01-12

  • thoughtsprogramming

    You're not a Java Developer

    2017-11-28

tag cloud

.netcore algorithm assembly awk ax3600 bash byobu c c++ concurrency cybereason data-structures databases debian devops digitalocean direnv docker fingerprint ghost gici gnome golang h.264 hackathon hexo idiom language-server-protocol linux lsp math neovim networking ocr optimization pgp productivity project python regex screen tmux tor vim vscode web-scraping xiaomi

categories

  • announcement5
    • blog3
    • general2
  • devops26
    • programming1
  • general6
    • book1
  • hacking2
  • new-years-resolution1
  • programming50
    • infosec1
  • thoughts9
    • devops1
    • general1
    • infosec4
    • programming1
Copyright © 2021 Oded Lazar. All Right Reserved.