python_math_stat/practica/stepik/stepik_tasks
2023-10-06 22:51:27 +03:00
..
10_pass_100_break.py fix? 2023-10-04 16:07:27 +03:00
counting_numbers.py fix? 2023-10-04 16:07:27 +03:00
geometric_figures.py add new task 2023-10-06 22:16:25 +03:00
intervals.py add new task 2023-10-06 22:35:53 +03:00
percentage_of_letters.py add new tasks to the file 2023-10-06 22:05:26 +03:00
pie.py fix? 2023-10-04 16:07:27 +03:00
programmer_names.py fix? 2023-10-04 16:07:27 +03:00
README.md add condition for the mathematical tasks 2023-10-06 22:51:27 +03:00
sum_num_from_last.py some fix in taskk 2023-10-06 22:40:49 +03:00
sum_num_nearby.py some fix in taskk 2023-10-06 22:42:17 +03:00
tickets.py add fix to task 2023-10-06 22:48:22 +03:00

Stepik tasks

Here you can find done tasks from stepik courses.

  • 10_pass_100_break

    For each entered number, check: if the number is less than 10, then pass this number; if the number is greater than 100, then break;in other cases, print this number back to the console in a separate line.

  • Counting_numbers

    A program that reads numbers from input and after the first zero entered, prints the sum of the received numbers

  • Intervals

    Write a program that takes an integer as input and prints True if the passed value falls within the interval (15,12](14,17)[19,+∞) and False otherwise (case matters)

  • Percentage of letters

    • #1 Write a program that calculates the percentage of characters G (guanine) and C (cytosine) in an input string (the program should not be case sensitive)
    • #2 Write a program that reads a string, encodes it using the proposed algorithm, and prints the encoded sequence to standard output. Encoding must be case sensitive
  • Pie

    Determine the area of the figure using the following input data:

    1. triangle, a, b, c - lengths of the sides of the figure
    2. rectangle, a, b - lengths of the sides of the figure
    3. circle, r - radius of the circle
  • Programmer's names

Peculiarities of word endings in Russian, therefore the task is duplicated in Russian

English ver Russian ver
Write a program that reads an integer from user inputn (non-negative), outputting this number to the console along with the word "programmer" correctly modified so that the robot can communicate normally with people, for example: 1 programmer, 2 programmers, 5 programmers Напишите программу, считывающую с пользовательского ввода целое число n (неотрицательное), выводящее это число в консоль вместе с правильным образом изменённым словом "программист", для того, чтобы робот мог нормально общаться с людьми, например: 1 программист, 2 программиста, 5 программистов
  • Sum_num_from_last

    A program that takes the left and right character from each character and combines them into one number. For the first and last numbers, the left and right numbers are the last and first numbers respectively

  • Sum_num_nearby

    A program that displays the sum of the right and left numbers from the main one. For the first and last numbers, the left and right numbers are the last and first numbers respectively

  • Tickets

    A program that issues a “Lucky” or "regular" ticket, the number of which we entered. If all the numbers are the same - the ticket is lucky