Python Forum
Help: write 'case' with Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help: write 'case' with Python
#1
Hi, I remember in C we can use:
case 0: sentence 0
case 1: sentence 1
case 2: sentence 2
...
Can I write similar sentence with Python? If yes, is there an example code?
Reply


Messages In This Thread
Help: write 'case' with Python - by ICanIBB - Jan-27-2021, 08:36 PM
RE: Help: write 'case' with Python - by nilamo - Jan-27-2021, 08:57 PM
RE: Help: write 'case' with Python - by Larz60+ - Jan-27-2021, 09:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What colon (:) in Python mean in this case? Yapwc 4 2,182 Dec-28-2022, 04:04 PM
Last Post: snippsat
  Switch case or match case? Frankduc 9 4,559 Jan-20-2022, 01:56 PM
Last Post: Frankduc
  Logstash - sending Logstash messages to another host in case of Failover in python Suriya 0 1,682 Jul-27-2021, 02:02 PM
Last Post: Suriya
  How to use switch/case in python? newbieguy 9 4,107 Nov-08-2019, 11:35 AM
Last Post: newbieguy
  How to write switch case statement in Python pyhelp 9 9,262 Nov-11-2018, 08:53 PM
Last Post: woooee
  Is there a better way to write this case scenario? anakaine 15 8,626 Sep-26-2017, 04:33 PM
Last Post: buran
  Is there a something like "case" in Python 3.6? Raptor88 18 20,911 Feb-27-2017, 02:44 AM
Last Post: Raptor88

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020