Предмет: Информатика, автор: venetacan

 PYTHON PYTHON PYTHON

Приложения:

restIess: это получается две координаты? либо же это дробные числа?
venetacan: Две координаты думаю
restIess: а какую сейчас тему проходите?
venetacan: Ветвление (Python)
venetacan: 8КЛАСС
restIess: а библиотеку math еще не проходили?
venetacan: Про math да,а библиотеку math нет
restIess: math и библиотека math - одно и тоже)
venetacan: Боже ахахха спасибо,я не шарю информатику

Ответы

Автор ответа: restIess
3

Не думаю, что входные данные именно такие, как написано в учебнике, скорее всего, подаются просто числа. (т.к это 8 класс)

x1,y1 = int(input()), int(input())

x2,y2 = int(input()), int(input())

d1 = (x1 ** 2 + y1 ** 2) ** 1/2

d2 = (x2 ** 2 + y2 **2) ** 1/2

if d1 < d2:

   print("Первая точка ближе")

elif d1 > d2:

   print("Вторая точка ближе")

else:

   print("Одинаковое расстояние")


venetacan: СПАСИБО БОЛЬШОЕЕЕЕЕ
Похожие вопросы
Предмет: Английский язык, автор: milkalove2001

Помогите очень важно там 20 баллов+дополнительные.

PART A) Put in the adjective or the adverb in brackets ( ).

Example: The train was very slow (slow/slowly) and I arrived late.
1. The journey took a long time because the train went very ----------------- (slow / slowly).
2. Mrs. Green went ---------------- (quick / quickly) back to her office.
3. The work that the builders did for us was very -------------------- (bad / badly).
4. The builders did the work for us very --------------------- (bad / badly).
5. She organized the party very ------------------ (good / well), and everybody enjoyed it.
6. Everybody said that the party was very ------------------------ ( good / well)
7. She wrote a ------------------ (polite / politely) letter asking the company to give her the money back.
8. She wrote to the company and asked them ---------------- (polite / politely) to give her the money back.



PART B) Rewrite these sentences using an adverb instead of an adjective.

Example: Peter is a bad tennis player. Peter plays tennis badly
1. He’s a dangerous driver. He drives --------------------------------
2. She’s a fast swimmer. She swims -------------------------------
3. Martin is a good cook. ---------------------------------------------
4. I’m a slow writer. ---------------------------------------------
5. She’s a wonderful dancer. ---------------------------------------------
6. Sheila is a hard worker. ---------------------------------------------
7. They aren’t quick learners. ---------------------------------------------










PARTC) Complete the sentences by choosing an ending from the box.,

the road carefully the piano badly her breakfast slowly an hour late
their homework well his car fast Arabic perfectly

Example: She plays the piano badly
1. He drives -------------------------------------------------------
2. Maria ate --------------------------------------------------------
3. They speak ------------------------------------------------------
4. You must always cross ----------------------------------------
5. They all did -----------------------------------------------------
6. The plane arrived -----------------------------------------------


CHOOSE • Complete Maggie’s letter with the correct word in parentheses.


Dear Mom and Dad,
Life in New York is very exciting (exciting / excitingly) . Luis and I weren’t sure we’d like such a
------------------------ (large / largely) city, but it’s so interesting! Yesterday we saw a street musician near school. He played the violin so ---------------------------------- (beautiful / beautifully) we couldn’t believe he wasn’t in a big concert hall. You’d be surprised to see us. We walk ---------------------------------- (happy / happily) down the ---------------------------- (busy / busily) streets, and the noise doesn’t bother us at all! I’m sending a photo of our apartment building. It looks ----------------------------- (nice / nicely), doesn’t it? It’s so ----------------------------
(quiet / quietly) we can ------------------------------ (hard / hardly) believe it’s in New York. Our next-door neighbor is very ---------------------------- (nice / nicely). At first she seemed -------------------------- (shy / shyly), but now we’re ------------------------- (good / well) friends.
We hope you’re both well. Please give our love to everyone and write soon.
Love,
Maggie
Предмет: Биология, автор: Ангелина1124
Предмет: Математика, автор: Error340