+ 2
What is ' snake case ' pls explain ..
10 Antworten
+ 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
+ 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)...
+ 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.
+ 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
+ 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
0
a way if formating identifier names: snake_case
as there are camelCase or kebab-case
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: _
0
Complete the code below to add a comment and declare a variable using the snake case sty
___Using snake case
credit___score = 700
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