Size: a a a

2021 May 24

GZ

Globus Zarobotok in pro.python
Django
источник

СС

Саша Семенищев... in pro.python
У тебя где src сделай просто {{question.trailer.url}}
источник

GZ

Globus Zarobotok in pro.python
Уже решил,кста этот вариант тоже не сработал.Но всё равно спасибо!
источник

СС

Саша Семенищев... in pro.python
Пожалуйста
источник

SD

Sergey D in pro.python
Calling f.write() without using the with keyword or calling f.close() might result in the arguments of f.write() not being completely written to the disk, even if the program exits successfully.

*тут была излишняя токсичность
источник

OS

Oleg Serikov in pro.python
Привет токсичность, не пиши в открытые на чтение файлы
источник

SD

Sergey D in pro.python
Не заметил что вопрос про файлы, открытые на чтение. Тогда аргумент снимается.
Ну и все-таки прав был, что токсичность здесь была неуместна
источник
2021 May 25

𝕒͗

𝕒 𝕝 𝕖 𝕩 𝕒 𝕟ᅠᅠᅠᅠᅠᅠᅠᅠᅠ... in pro.python
источник

𝕒͗

𝕒 𝕝 𝕖 𝕩 𝕒 𝕟ᅠᅠᅠᅠᅠᅠᅠᅠᅠ... in pro.python
Он в этом чате
источник

m

meier in pro.python
а гаранты для кого?
источник

K

Kappa in pro.python
хелп

def iq_test(numbers):
   numbers = numbers.split()
   a = 0
   b = 0
   for q in numbers:
       if int(q) % 2 == 0:
           a+=numbers.index(q)
       else:
           b+=numbers.index(q)
   if len(str(a)) == 1:
       return numbers.index(str(a))
   else:
       return numbers.index(str(b))

Traceback (most recent call last):
 File "tests.py", line 6, in <module>
   test.assert_equals(iq_test("88 96 66 51 14 88 2 92 18 72 18 88 20 30 4 82 90 100 24 46"), 4)
 File "/workspace/default/solution.py", line 13, in iq_test
   return numbers.index(str(b))
ValueError: '3' is not in list

Bob is preparing to pass IQ test. The most frequent task in this test is to find out which one of the given numbers differs from the others. Bob observed that one number usually differs from the others in evenness. Help Bob — to check his answers, he needs a program that among the given numbers finds one that is different in evenness, and return a position of this number.

! Keep in mind that your task is to help Bob solve a real IQ test, which means indexes of the elements start from 1 (not 0)

Examples:
iq_test("2 4 7 8 10") => 3 # Third number is odd, while the rest of the numbers are even

iq_test("1 2 1 1") => 2 # Second number is even, while the rest of the numbers are odd
источник

бт

брайтстоун тселдор... in pro.python
у вас проверка неправильно работает. Попробуйте тест 2 2 2 1
источник

Dk

Dn't kill yurself in pro.python
Здравствуйте
Как можно миносовать циклично ???
например
20 миносовать по 5
20
15
10
5
0
источник

K

Kappa in pro.python
a = 20
while True:
   print(a)
   a-=5
   if a == 0:
       break
источник

Dk

Dn't kill yurself in pro.python
thnx
источник

K

Kappa in pro.python
источник

бт

брайтстоун тселдор... in pro.python
"How many times will the mother see the ball pass in front of her window"
источник
2021 May 27

a

andrei in pro.python
We are excited to announce that Bitgame 2.0 has officially launched.
- Improved UI/UX
- Awesome Activities

1️⃣ Meme Competition
We're looking for the most creative meme including our NEW LOGO.
The top 10 memes will be selected based on quality, originality, and humor by the BitGame team. The community will then select the top 3 via a poll on 1st June,2021.

🎁200 USDT Prize Pool

🎯Details: https://bit.ly/3hI4iM9
📅Duration: 2021.05.20 00:00~2021.05.31 23:59


2️⃣Crazy Wheel, Chance to Win 1 BTC

All Bitgamers will get a daily free spin within 7 days after the new launch of 2.0 website.

🎁The highest reward is 1BTC.
📎New official website: https://www.bitgame.com/
📅Activity time: 2021.05.27 00:00~2021.06.02 23:59

3️⃣Sharing Competition

✔️Send the News of Bitgame v2.0 Launch  + @Bitgame_EN to 5 sports or crypto oriented groups that with more than 500 people
(Template: Bitgame 2.0 is newly launched, join the official telegram group @Bitgame_EN now and get a free spin to win up to 1 BTC)
✔️Take a screenshot that includes the number of people in the group and your sent message)
✔️Send the screenshots and message links to the administrator @Bitgame_admin03 for reviewing

🎁Reward: 2 USDT per Bitgamer and distributed after the event ended
📅Activity time: 2021.05.27 00:00~2021.06.02 23:59

🚫Note:
1. Multi-account participation will be disqualified in this competition.
2. Any deceptions and violations will be banned.
3. We will publicize the illegal account and reserve the right to recover the illegal income indefinitely.

*Bitgame reserves the final interpretation right of events above.
источник
2021 May 28

AN

A. Nazinyan in pro.python
У меня такое вопрос.
Как хранить сообщения вызываемых исключений?

Выберите что-то, или можете сказать свой вариант:
1 - нигде просто при вызове отдать строку
2 - в переменной , например “error_message”
3- в словаре. Он может быть определен даже в другом модуле
4 - в классе, например “ErrorMessage”, и сообщения исключений будут в атрибутах. Он тоже может быть в другом модуле.
источник

m

megahomyak in pro.python
зачем последние две строки? Можно ж просто while a
источник