This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
//task 1 | |
// int main(){ | |
// int a, i, j = 0; | |
// std::cin >> a; | |
// if (a <= 0){ | |
// std::cout << "error" << std::endl; | |
// }else{ | |
// std::cout << "error" << std::endl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cmath> | |
// // task 1 | |
// int main(){ | |
// int num; | |
// std::cin >> num; | |
// if (num == 0){ | |
// std::cout << num + 10 << std::endl; | |
// }else if (num > 0){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include <cmath> | |
#include <complex> | |
using namespace std; | |
// task 1 | |
// (а) | |
// int main(){ | |
// cout<< "2 kg" << "\n" << "13 17" << endl; | |
// return 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111111 | |
num = [1,3,5,7,2,4,6,8] | |
max_sum = 10 | |
v = [] | |
sum = [] | |
x = 0 | |
for i in num: | |
if x + i <= max_sum: | |
v.append(i) | |
x += i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11111111 | |
numbers = [] | |
for num in range(5): | |
num = [numbers.append(x) for x in input("Введите натуральное число: ")] | |
print(numbers) | |
22222 | |
number = [1,2,3,4,5] | |
sum = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#6 | |
n = int(input("Введите число: ")) | |
o = 0 | |
for i in range(2, n + 1, 2): | |
o = o + i | |
print(f"{o} (", end="") | |
for i in range(2, n + 1, 2): | |
print(f"{i}+", end="") | |
print(")") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Квадрвт закрашенный | |
n = 5 | |
for i in range(n): | |
for j in range(n): | |
print("*", end=" ") | |
print() | |
#квадрат не закрашеннй | |
n = 5 | |
for i in range(n): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
задача 1 | |
begin = int(input("begin >> ")) | |
end = int(input("end >>")) | |
if begin >= end: | |
print("не верное значение") | |
i = begin | |
s = 0 | |
while (i <= end): | |
s = s + i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
логические операторы (таблица истинности) условия конструкции if тернарный оператор. | |
оператор (and) пример: expression = ((x < y) and (y > z) and (x != 0)) ответ один либо true либо false, если одно условие не выполняется, то ответ будет false если все выполняются то true | |
оператор (or) пример: expression = ((x < y) or (y > z) or (x != 0)) если хотябы одно условие выполняется то true | |
можно комбенировать операторы (and or) пример: expression = ((x < y) or (y > z) or (x != 0 and y > 0)) | |
оператор (not) | |
пример рабочего кода: | |
x = 10 | |
y = 5 | |
exp1 = ((x > y) and (x != 0) and (y == 5)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
БС (Бизнес-аналитик) - помогает бизнесу находить подводные камни и уязвимости: нужные знания (ms Excel, SQL, ROUDMAPS, Дашборды, Доп.ПО для тестирования, UML) зп от 25k - 350k | |
ПА (Продуктовый-аналитик) - помогает бизнесу находить точки роста: нужные знания (Tableu, Google Analytics, Python (Selenium), MixPanel) зп от 15k - 325k | |
BI () - делают оценку эфективности бизнеса, состовляет графики и таблици: нужные знания (power BI, Tableau, SQL, английский язык) зп от 25k - 340k | |
ДС (Дата-сайнтист) - много чего делает и всегда востребован очень много чего надо знать: зп от 15k - 460k |
NewerOlder