Telegram Group & Telegram Channel
#Basics

Condition inside the print function

def is_positive(number):
print("Positive" if number > 0 else "Negative")



is_positive(-3)

Output:

Negative

Share and Support
@Python_Codes



tg-me.com/python_codes/195
Create:
Last Update:

#Basics

Condition inside the print function

def is_positive(number):
print("Positive" if number > 0 else "Negative")



is_positive(-3)

Output:

Negative

Share and Support
@Python_Codes

BY Python Codes


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_codes/195

View MORE
Open in Telegram


Python Codes Telegram | DID YOU KNOW?

Date: |

At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?

Python Codes from kr


Telegram Python Codes
FROM USA