Ранее я уже упоминал о другой фишке из ˍˍfutureˍˍ , это оператор деления.
from __future__ import division
Суть проста. Раньше сложность типа данных результата поределялась типом самого сложного операнда.
Например:
int/int => int
int/float => float
В первом случае оба операнда int, значит и результат будет int. Во втором float более сложный тип, поэтому результат будет float.
Если нам требуется получить дробное значение при делении двух int то приходилось форсированно один из операндов конверировать в float.
12/float(5) => float
Но с новой "философией" это не требуется. В Python3 "floor division" заменили на "true division" а старый способ теперь работает через оператор "//".
>>> 3/2
1.5
>>> 3//2
1
То есть теперь деление int на int даёт float если результат не целое число.
В классах теперь доступны методы __floordiv__() и __truediv__() для определения поведения с этими операторами.
Данный переход описан в PEP238.
#pep#2to3#basic
#PYR/USDT analysis :
#PYR is currently in an uptrend, forming a higher highs (HHs) and higher lows (HLs) structure. At present, the price is undergoing a correction phase, with expectations of a breakout from the trendline soon, which will allow it to resume its bullish momentum. Wait for a break above the $4.320 level as a signal to enter long positions.
TF : 1h
Entry : $4.320
Target : $4.845
SL : $3.969
#PYR/USDT analysis :
#PYR is in a downtrend, forming lower lows (LLs) and lower highs (LHs) structure. The price is currently trading below the 200 Exponential Moving Average (EMA). It is anticipated that the price will retrace back to the resistance zone and then reverse from there to continue its bearish momentum and test the previous swing low.
TF : 30min
Entry : $2.438
Target : $2.299
SL : $2.495
#PYR
https://www.binance.com/en/trade/PYR_BTC
Buying Zone 1850-1868
We are expecting ride in this Coin 🚀🚀🚀🚀
Buy in parts and Strictly follow as directed 👆
Sell
🤑 2000-2050
🤑 2050- 2250
🤑 2250- 2400
🚀 2400- 2600 & above
Exit/Re-Entry point- 1800
#PYR result
2 nd target achieved in just 5 days ✅✅
One more huge quick profit 22.4%🤑💰🤑
👉 Still thinking? The more you wait more you lose profit
☎️ Contact @MichaelStrategiesVip for membership and grab next breakout signal