+ 2

What is ' snake case ' pls explain ..

29th Jun 2021, 12:04 PM
Yash Mitkari
10 Respostas
+ 3
visph That kebab-case might be a bit over-cooked for Python as it without be parsed as two variables `kebab` and `case` with a subtract operator (` - `) . 😉
29th Jun 2021, 1:01 PM
David Carroll
David Carroll - avatar
+ 3
Complete the code below to add a comment and declare a variable using the snake case sty ___Using snake case credit___score = 700 What is the answer of this question
23rd Dec 2023, 11:12 AM
Rajendra Bhaydiya
Rajendra Bhaydiya - avatar
+ 1
David Carroll I was explaining cases form, languages agnostic (I used word 'identifier' not 'varoable')... in fact kebab case often not valid as identifier name in most of languages (css and html are exceptions)...
29th Jun 2021, 1:05 PM
visph
visph - avatar
+ 1
visph I figured you were being language agnostic. In fact, it would also need to be paradigm agnostic since most imperative languages wouldn't be able to lexically parse the minus symbol as anything but an operator token. Still yet, I doubt the OP would have picked up on the subtle distinction of "identifier" vs "variable". 😉 Since the question is tagged as Python, I figured it would be worth pointing out to eliminate confusion. Yash Mitkari Different formats are used for naming various types of identifiers such as variables, classes, functions, properties, methods, events, etc. Since these don't support spaces, there are conventions to delimit the words. snake_case uses underscores. camelCase and PascalCase capitalize the first letter of words. There are many variations of these naming conventions. You'll eventually pick up on the most common ones.
29th Jun 2021, 2:11 PM
David Carroll
David Carroll - avatar
+ 1
Complete the code below to add a comment and declare a variable using the snake case style Using snake case Type credit Type score = 700
2nd Dec 2023, 2:05 PM
E'zoza Abdiyeva
E'zoza Abdiyeva - avatar
+ 1
Snake case is a naming convention used in computer code that replaces spaces between words with underscores and writes all letters in lowercase. It's often used for variable and method names, filenames, and database table and column names. 😎.Complete the code below to add a comment and declare a variable using the snake case style # Using snake case credit _ score = 700
21st Sep 2024, 1:02 PM
BAMIGBAYE OLUWASEMILORE
BAMIGBAYE OLUWASEMILORE - avatar
0
a way if formating identifier names: snake_case as there are camelCase or kebab-case
29th Jun 2021, 12:18 PM
visph
visph - avatar
0
snake case is used in Python. The snake 🐍 case is used to separate a variable name(when var has 2 words as name). Example :-> country_name = "India"; Snake case is just a under score: _
29th Jun 2021, 1:32 PM
Parth
Parth - avatar
0
Complete the code below to add a comment and declare a variable using the snake case sty ___Using snake case credit___score = 700
18th Apr 2024, 2:28 AM
Abinesh Abi
Abinesh Abi - avatar
0
Complete the code below to add a comment and declare a variable using the snake case style # Using snake case credit _ score = 700 This is the answer right
25th May 2024, 4:19 AM
Mk Perumal (Valli)
Mk Perumal (Valli) - avatar