Computer Science, asked by vaishalijain2717, 9 months ago

Weite Logical expressions couuesponding to the following
statements in Python and evaluate the expressions.
(a) The sum of
20 and -10 is less than 12​

Answers

Answered by raj4raju4naman
0

Answer:

Sass is quite popular and tends to be an essential tool for every front-end developer. Sitepoint has already published some introductory articles about this CSS preprocessor language.

In this article, we’ll continue exploring Sass by diving into its operations.

Note: The examples will be based on Ruby Sass. I also suggest you to have a look at Hugo’s article, which discusses Sass-Compatibility.

Assignment Operator

Sass uses the colon (:) operator to define a variable. For instance:

$main-color: lightgray;

Arithmetic Operators

Arithmetic operators are used to perform the standard arithmetic operations.

Here are the arithmetic operators that Sass supports:

Operator Description

+ Addition

– Subtraction

* Multiplication

/ Division

% Remainder

As we’ll see in an upcoming section, the addition operator (+) can also be used to concatenate strings.

Note that the operators above work only for numbers with compatible units:

h2 {

font-size: 5px + 2em; // error incompatible units

font-size: 5px + 2; // 7px

}

Moreover, multiplying two numbers of the same unit together will produce invalid CSS:

h2 {

font-size: 5px * 2px; // invalid CSS

}

As you might know, the / symbol is part of CSS shorthand properties. For example:

font: 16px / 24px Arial sans-serif;

background: url("http://example.com") no-repeat fixed center / cover;

But, as already mentioned Sass can take advantage of the forward slash (/) to perform the division operation.

So, let’s see how Sass understands this symbol:

h2 {

font-size: 16px / 24px // Outputs as CSS

font-size: (16px / 24px) // Uses parentheses, does division

font-size: #{$base-size} / #{$

Explanation:

HOPE THIS WILL HELP YOU

Similar questions