Telegram Group & Telegram Channel
Found very intersting approach to count the digits of an integers #python:

from math import floor, log10


def count_digits(n):
return 1 + floor(log10(n))

In [2]: count_digits(5)
Out[2]: 1

In [3]: count_digits(999)
Out[3]: 3

In [4]: count_digits(1000)
Out[4]: 4



tg-me.com/python_programming_challenges/74
Create:
Last Update:

Found very intersting approach to count the digits of an integers #python:

from math import floor, log10


def count_digits(n):
return 1 + floor(log10(n))

In [2]: count_digits(5)
Out[2]: 1

In [3]: count_digits(999)
Out[3]: 3

In [4]: count_digits(1000)
Out[4]: 4

BY 馃嚭馃嚘 Python Programming 小hallenges


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

Share with your friend now:
tg-me.com/python_programming_challenges/74

View MORE
Open in Telegram


馃嚭馃嚘 Python Programming 小hallenges 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?

Telegram Auto-Delete Messages in Any Chat

Some messages aren鈥檛 supposed to last forever. There are some Telegram groups and conversations where it鈥檚 best if messages are automatically deleted in a day or a week. Here鈥檚 how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won鈥檛 affect the messages that were sent before enabling the feature.

馃嚭馃嚘 Python Programming 小hallenges from ua


Telegram 馃嚭馃嚘 Python Programming 小hallenges
FROM USA