
Alexey
23.03.2017
18:40:03
вообще пипа нет?

r o o t @
23.03.2017
18:40:03
в руте .bashrc не изменяется
щас поищу

pride
23.03.2017
18:40:12
which pip3

Google

err0r
23.03.2017
18:40:13
pip и таб

pride
23.03.2017
18:40:18
и $PATH
сделай
и посмотри совпадает ли путь первого с переменной

r o o t @
23.03.2017
18:40:48
есть пип
нету переменной для него

Alexey
23.03.2017
18:40:58
pip -V

r o o t @
23.03.2017
18:41:52
pip 9.0.1 from /usr/local/lib/python3.5/dist-packages (python 3.5)

Alexey
23.03.2017
18:42:04
ну

r o o t @
23.03.2017
18:42:13
теперь вопрос

Alexey
23.03.2017
18:42:19
чем не пип?

r o o t @
23.03.2017
18:42:31
он с 3.6 работает?)

Alexey
23.03.2017
18:42:46
угу

Google

r o o t @
23.03.2017
18:42:51
все уже

Dmitriy
23.03.2017
18:54:46
Нужен профессиональный совет, в свободное время в основном читаю проф литературу, и вот думаю, может стоит больше кодить, дабы поднять скилл? Как думаете? На комбо времени не хватит.

Yahweh
23.03.2017
18:55:35
И читай, и кодь. Кодь и читай.

Dmitriy
23.03.2017
18:57:19

Eugene
23.03.2017
19:06:43
Всем привет. Ребят, вопрос такой - известно, что функция zip() может привести к головной боли если использовать её с итераторами разной длины, а какой смысл её юзать при наличии zip_longest?

Yahweh
23.03.2017
19:07:50

Eugene
23.03.2017
19:08:37
lastnames = ["ivanov", "petrov", "sidorov", "smirnov", "sazanov"]
departments = ["marketing", "it", "finance"]
employeers = {}
for lastname, depart in zip(lastnames, departments):
employeers[lastname] = depart
print(employeers)
просто пример

Igor
23.03.2017
19:08:54
Парни, только не обкладывайте ху...ми. Что не так делаю? Я прохожу курс, но задание главное не понимаю. Какого х..??
# Make sure that the_flying_circus() returns True
def the_flying_circus():
if the_flying_circus(): # Start coding here!
print "Welcome One!" # Don't forget to indent
# the code inside this block!
elif that_flying_circus:
print "Welcome Two!" # Keep going here.
# You'll want to add the else statement, too!
else:
print "Welcome Three!"

Yahweh
23.03.2017
19:09:30

Igor
23.03.2017
19:09:46
А вот задание:
Write an if statement in the_flying_circus(). It must include:
if, elif, and else statements;
At least one of and, or, or not;
A comparator (==, !=, <, <=, >, or >=);
Finally, the_flying_circus() must return True when evaluated.
Don't forget to include a : after your if statements!

r o o t @
23.03.2017
19:09:59
the pyenv script is deprecated in favour of python3.6 -m venv
usage: venv [-h] [--system-site-packages] [--symlinks | —copies] [--clear]
[--upgrade] [--without-pip] [--prompt PROMPT]
ENV_DIR [ENV_DIR ...]

Eugene
23.03.2017
19:10:06
данный пример исключительно для проверки как он работает и особой смысловой нагрузки не несет
но вопрос-то есть

r o o t @
23.03.2017
19:11:41
the pyenv script is deprecated in favour of python3.6 -m venv
usage: venv [-h] [--system-site-packages] [--symlinks | —copies] [--clear]
[--upgrade] [--without-pip] [--prompt PROMPT]
ENV_DIR [ENV_DIR ...]
Что он хочет от меня?

vlade11115
23.03.2017
19:13:06

r o o t @
23.03.2017
19:14:11

Igor
23.03.2017
19:14:34
Никто не подскажет?

r o o t @
23.03.2017
19:15:16
только я не понял как решить эту проблему
и решается ли она вообще)

Google

Yahweh
23.03.2017
19:15:28

Igor
23.03.2017
19:15:48
Ну посмотри на то, что я выше написал.
Проблема у меня.

Yahweh
23.03.2017
19:18:44
Проблема у меня.
Всё же написано. Надо включить в функцию if, elif, else. Чтобы было использовано одно and, or, not и == != и чтобы функция возвращала True

Igor
23.03.2017
19:19:43

Janek
23.03.2017
19:21:13
Так а что именно непонятно?
Тебе даже перевели

Igor
23.03.2017
19:21:36
Ок. Минуточку.
Ща попробую.

Janek
23.03.2017
19:22:42
if smthng<x and smt>=x:
....return True
Как-то так сделай

Igor
23.03.2017
19:23:49
# Make sure that the_flying_circus() returns True
def the_flying_circus():
if True or False: # Start coding here!
print "Welcome One!" # Don't forget to indent
# the code inside this block!
elif (3 < 4) and (5 >= 5):
print "Welcome Two!" # Keep going here.
# You'll want to add the else statement, too!
else (5 == 5) not (5 < 4):
print "Welcome Three!"
return True
Вот вроде!!!
Но не правильно!!!

Janek
23.03.2017
19:24:45
У else убери значения
Оставь один else

Yahweh
23.03.2017
19:25:35
И после if True. Дальше не поедет

Janek
23.03.2017
19:25:55
Else значит "во всех остальных случаях", т.е.сравнивыемые значения смысла там указывать нет

Igor
23.03.2017
19:26:18
Вот
# Make sure that the_flying_circus() returns True
def the_flying_circus():
if True: # Start coding here!
print "Welcome One!" # Don't forget to indent
# the code inside this block!
elif (3 < 4) and (5 >= 5):
print "Welcome Two!" # Keep going here.
# You'll want to add the else statement, too!
else:
print "Welcome Three!"
return True

Google

Igor
23.03.2017
19:26:31
Но пишет
Oops, try again. the_flying_circus() returned the value None, did you forget to add a return statement?

Yahweh
23.03.2017
19:26:41
Не-не

Janek
23.03.2017
19:27:02
У тебя if True срабатывает
Вставь под ним возврат
А то функция просто печает текст, но ничего не возвращает

Igor
23.03.2017
19:28:09
ВО!!! Спасибо!!!
# Make sure that the_flying_circus() returns True
def the_flying_circus():
if True: # Start coding here!
print "Welcome One!" # Don't forget to indent
# the code inside this block!
return True
elif (3 < 4) and (5 >= 5):
print "Welcome Two!" # Keep going here.
# You'll want to add the else statement, too!
else:
print "Welcome Three!"

Janek
23.03.2017
19:28:10
Если хочешь, чтоб все стейтменты отработали, замени elif на if

Igor
23.03.2017
19:28:15
Работает.

Yahweh
23.03.2017
19:28:22
И сделай в elif (4 < 3) and (5 >= 5) и всё будет

Igor
23.03.2017
19:28:36
Вот теперь вопрос. Почему я выполняю задания, а вот что посложнее не могу?
Вот почему?
Потому что я даун?

Janek
23.03.2017
19:28:52
Хз

Johnnie
23.03.2017
19:28:56
да

Yahweh
23.03.2017
19:29:00

Janek
23.03.2017
19:29:04
Грызи, пока не поймёшь

Yahweh
23.03.2017
19:29:15
хотя нет.

Igor
23.03.2017
19:29:22
да
Потому что я даун??))) Хаха))) Ты меня любишь!

Yahweh
23.03.2017
19:30:07
за if True бьют

Google

Igor
23.03.2017
19:30:21

Janek
23.03.2017
19:30:27
Хех

Herman
23.03.2017
19:31:01
глупый вопрос
как def переводится? ну, это сокращение же какое-то?
от какого слова?

Janek
23.03.2017
19:31:23
Define

Yahweh
23.03.2017
19:31:28
define

Igor
23.03.2017
19:31:28
Функция это

Janek
23.03.2017
19:31:30
Определить

Herman
23.03.2017
19:31:47
ок

Yahweh
23.03.2017
19:31:54

Janek
23.03.2017
19:33:28
Сложную задачу дал
((

Igor
23.03.2017
19:41:35
def the_flying_circus():
if True:
print ("Welcome One!")
return True
elif (3 < 4) and (5 >= 5):
print ("Welcome Two!")
else:
print ("Welcome Three!")
return True

Yahweh
23.03.2017
19:42:21
У тебя по прежнему будет возвращаться из If. А надо из else

Igor
23.03.2017
19:43:37
def the_flying_circus():
if True:
print ("Welcome One!")
elif (3 < 4) and (5 >= 5):
print ("Welcome Two!")
else:
print ("Welcome Three!")
return True

Yahweh
23.03.2017
19:43:54
Тогда возвращаться будет None

Igor
23.03.2017
19:44:17
Да что ж такое то а!!!

Dmitriy
23.03.2017
19:44:33
Чувак, просто напиши словами что ты делаешь
Эта группа больше не существует