`print ("*****AREA CALCULATOR*****")
print ("""press 1 to get an area of square
press 2 to get an area of rectangle
press 3 to get an area of circle
press 4 to get an area of triangle""")
choice = int(input("enter a number between 1-4: "))
if choice == 1:
side = float(input("enter the length of one side: "))
area = side**2
print("area of square is", area)
repeat = input("do you want to try again with square: ")
if repeat == "no":
break`
это только для квадрата (формы), но из-за ошибки я не пишу дальше.
[img]https://i.sstatic. net/2fm6IhJM.png[/img]
пожалуйста, не удаляйте мой вопрос, поскольку отступы в блокноте Jupyter не помогают. вот мой код для создания программы расчета площади ` [code]`print ("*****AREA CALCULATOR*****") print ("""press 1 to get an area of square press 2 to get an area of rectangle press 3 to get an area of circle press 4 to get an area of triangle""")
choice = int(input("enter a number between 1-4: ")) if choice == 1: side = float(input("enter the length of one side: ")) area = side**2 print("area of square is", area) repeat = input("do you want to try again with square: ") if repeat == "no": break` [/code] это только для квадрата (формы), но из-за ошибки я не пишу дальше. [img]https://i.sstatic. net/2fm6IhJM.png[/img]
Принятые меры:
Убедились, что CSS-файлы правильно связаны в HTML.
Проверили разные браузеры, чтобы проверить, сохраняется ли проблема.
Использовали инструменты разработчика браузера. чтобы проверить элемент и убедиться, что стили не применяются....
Я хотел бы построить график с помощью приведенного ниже кода, я получаю сообщение об ошибке Ошибка Javascript: IPython не определен.
import backtrader as bt
import datetime
import yfinance as yf
%matplotlib inline