Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Sons Fraase




Posted Answers



Answer


The most common comparison operators are the equality operator (==) and the inequality operator (!=). It’s almost impossible to write any meaningful amount of Python code without using at least one of those operators.

The equality operator (==) is one of the most used operators in Python code. You often need to compare either an unknown result with a known result or two unknown results against each other. Some functions return values that need to be compared against a sentinel to see if some edge condition has been detected. Sometimes you need to compare the results from two functions against each other.

The equality operator is often used to compare numbers:

You may have used equality operators before. They’re some of the most common operators in Python. For all built-in Python objects, and for most third-party classes, they return a Boolean value: True or False.

Second only to the equality operator in popularity is the inequality operator (!=). It returns True if the arguments aren’t equal and False if they are. The examples are similarly wide-ranging. Many unit tests check that the value isn’t equal to a specific invalid value. A web client might check that the error code isn’t 404 Not Found before trying an alternative.

Here are two examples of the Python inequality operator in use:

Perhaps the most surprising thing about the Python inequality operator is the fact that it exists in the first place. After all, you could achieve the same result as 1 != 2 with not (1 == 2). Python usually avoids extra syntax, and especially extra core operators, for things easily achievable by other means.

However, inequality is used so often that it was deemed worthwhile to have a dedicated operator for it. In old versions of Python, in the 1.x series, there were actually two different syntaxes.

As an April Fools’ joke, Python still supports an alternative syntax for inequality with the right __future__ import:

This should never be used in any code meant for real use. It could come in handy for your next Python trivia night, however.


Answer is posted for the following question.

What is false in python?

Answer


Mar 26, 2014 - I'm working with Lakeland to show how you can make great chocolate truffles at home Here are some of my highlights, including some Lakeland


Answer is posted for the following question.

Lakeland how to make chocolates?

Answer


Investors can look at investing in such NCD’s as the yields from these offerings are high, beats inflation by a margin and many of them have comfortable ratings.

Divam Sharma- Founder at Green Portfolio PMS said that investors should however check the basics of credit ratings, profile and track of NCD issuer before investing.

There have been some NCD issues in the recent past where offered 8-11% coupon. Many NBFC’s like Navi, Muthoot, Indiabulls, Edelweiss, Incred and IIFL had issued their NCD’s in the recent months.

As per Divam Sharma investing for long term in such NCD’s makes sense as the coupon is high and interest rates are nearing their peak. Investors should consider names where there is good credibility and no legacy issues.

Manish Jeloka, Co-head of Products & Solutions, Sanctum Wealth said it makes sense to invest in NCDs as the tax rate here would be marginal and post-tax returns would range from 6-7.5% depending on the tax bracket the investor sits in. The Issuers to refinance their existing debt need to raise NCDs now at a higher rate hence we have good quality NCDs available above 10% for a tenor of 3 years and above.

From a post-tax perspective, investment in Issuers rated AA and above and offering returns in excess of 9.5-10% are an attractive avenue to invest specially after viability of investing in MLDs is no longer an option, said Manish Jeloka

The advantages of having a highly-diversified portfolio are well known, and the addition of taxable NCDs helps portfolio diversification. In addition to providing regular cashflows, Taxable NCDs also provide security from the erratic nature of equities markets, said Amit Gupta.

Keep in mind that these NCDs are subject to interest rate and credit risks. So, one has to think about NCDs with a higher rating, greater yield to maturity (YTM), and plenty of liquidity on the markets, added Gupta.

1) Investors apply for NCD shares through a broker.

2) Based on the subscription, they receive the number of NCD shares.

3) The NCD's are credited to the demat account and the money gets deducted from the trading/bank account.

4) The minimum ticket sizes to invest in such IPO’s are usually Rs. 10000.

5) The majority of NCDs are listed on exchanges and traded similarly to equity shares.

6) Several of them are traded with respectable liquidity and at prices that are close to fair.


Answer is posted for the following question.

can ncd be traded?


Wait...