Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

Commit 52ef2d5

Browse files
Code snippet for do-while loop equivalent
1 parent 140c6f5 commit 52ef2d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

snippets/base.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@
121121
"body": "while ${1:condition}:\n\t${2:pass}$0",
122122
"description" : "Code snippet to create a while loop structure."
123123
},
124+
"dowhile": {
125+
"prefix": "dowhile",
126+
"body": "do = True \nwhile do or ${1:condition}:\n\t{2:body}\n\tdo = False$0",
127+
"description" : "Code snippet to create a do-while loop structure."
128+
},
124129
"try:except:": {
125130
"prefix": "try",
126131
"body": "try:\n\t${1:pass}\nexcept ${2:Exception} as ${3:e}:\n\t${4:raise $3}$0",

0 commit comments

Comments
 (0)