Skip to content
Sign UpLog In
Profile icon

Polina Horodyska

@pole55
  • "Student becomes the teacher"

    Cover page
    Made with Python
    Recent comments (0)
  • Royalty

    Cover page
    Made with Python

    Royalty calculator for Ukrainian translators

    Recent comments (0)
  • Battleship Game

    Cover page
    Made with Python

    A simplified, one-player version of the classic board game Battleship.

    Recent comments (0)
  • Most frequently occurring words in text

    Cover page
    Made with Python

    Program finds the most frequently occurring words in a text file

    Recent comments (0)
  • Number Guess Game

    Cover page
    Made with Python

    a program that rolls a pair of dice and asks the user to guess the sum. If the user's guess is equal to the total value of the dice roll, th

    Recent comments (0)
Repls
Community
pole55
pole55
published a Repl
6 months ago
0
Royalty
RoyaltyRoyalty calculator for Ukrainian translators
pole55
pole55
shared a Post
4 years ago
The program finds the 10 most frequently occurring words in a text file with stopwords (most common words) excluded. The text we use here is "A Tale o
Most frequently occurring words in text
Python
pole55
pole55
shared a Post
4 years ago
Given a list of numbers with all elements sorted in ascending order, determine and print the number of distinct elements in it. Example input: 1 2 2
7.6. Lists: Number of distinct elements
Python
pole55
pole55
shared a Post
4 years ago
Given a list of non-zero integers, find and print the first adjacent pair of elements that have the same sign. If there is no such pair, print 0. Exa
7.4. Lists: Same sign neighbors
Python
pole55
pole55
shared a Post
4 years ago
Statement "Fibonacci numbers are the numbers in the integer sequence starting with 1, 1 where every number after the first two is the sum of the two p
6.G. While: Fibonacci index
Python
jiuyuan3
jiuyuan3
try this: prev, next = 1, 1 index = 2 possible_fib = int(input()) while possible_fib > next: prev, next = next, prev + next index += 1 if possible_fib == next: print(index) else: print(-1)3 years ago
darwin1012
darwin1012
prev = 1 next = 1 index = 2 check_fib = int(input()) while check_fib > next: new_next = prev + next prev = next next = new_next index += 1 if check_fib == next: print(index) else: print(-1) it says to use a while loop3 years ago
ash15khng
ash15khng
There doesn't seem to be anything wrong with typing that number in?4 years ago
pole55
pole55
shared a Post
4 years ago
Fibonacci numbers are the numbers in the integer sequence starting with 1, 1 where every number after the first two is the sum of the two preceding on
6.F. While: Fibonacci numbers
Python
1SantiagO7
1SantiagO7
What does it mean "lst.append"?! pleasee2 years ago
pole55
pole55
shared a Post
4 years ago
Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Determine the length of the wide
6.E. While: Widest fragment
Python
pole55
pole55
shared a Post
4 years ago
Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Find how many elements of this s
6.D. While: Number of maxima
Python
pole55
pole55
shared a Post
4 years ago
Given a sequence of distinct non-negative integers, where each number is written in a separate line. The sequence ends with 0. Print the second larges
6.C. While: Second maximum
Python
pole55
pole55
shared a Post
4 years ago
A number is a disarium number only if the sum of its digits powered with their respective position is equal to the original number. For example: 135
Disarium Numbers
Python
pole55
pole55
shared a Post
4 years ago
Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Print the number of elements of
6.B. While: Greater than previous
Python
pole55
pole55
shared a Post
4 years ago
TASK: Write a program to check whether a given number is trimorphic or not? In mathematics a trimorphic number is a number whose cube (expressed in a
Trimorphic numbers
Python
pole55
pole55
shared a Post
4 years ago
Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Print the number of even element
6.A. While: Number of even elements
Python
pole55
pole55
shared a Post
4 years ago
Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Print the maximum of the sequenc
6.8. While: Maximum of sequence
Python
pole55
pole55
shared a Post
4 years ago
Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Print the average of the sequenc
6.7. While: Average of sequence
Python
pole55
pole55
shared a Post
4 years ago
Given a sequence of non-negative integers, where each number is written in a separate line. The sequence ends with 0. Print the sum of the sequence.
6.6. While: Sum of sequence
Python
pole55
pole55
shared a Post
4 years ago
Given a sequence of non-negative integers, where each number is written in a separate line. Determine the length of the sequence. The sequence ends wi
6.5. While: Length of sequence
Python
pole55
pole55
shared a Post
4 years ago
"As a future athlete you just started your practice for an upcoming event. On the first day you run x miles, and by the day of the event you must be a
6.4. While: Jogging
Python
AmirElangouri
AmirElangouri
why x * 0.1 can someone explain?3 years ago
pole55
pole55
shared a Post
4 years ago
"For a given integer X, find the greatest integer n where 2ⁿ is less than or equal to X. Print the exponent value and the result of the expression 2ⁿ.
6.3. While: Power of two
Python
pole55
pole55
shared a Post
4 years ago
"Given an integer not less than 2. Print its smallest integer divisor greater than 1." Example input 15 Example output 3
6.2. While: Least divisor
Python
NathanMulate
NathanMulate
Can you do this in a while loop?2 years ago