Profile icon

# Polina Horodyska

@pole55

Cover page
• ## Royalty

Royalty calculator for Ukrainian translators

• ## Battleship Game

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

• ## Most frequently occurring words in text

Program finds the most frequently occurring words in a text file

• ## Number Guess Game

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

published a Repl
6 months ago
0
RoyaltyRoyalty calculator for Ukrainian translators
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
Python
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
Python
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
Python
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
Python
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
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
There doesn't seem to be anything wrong with typing that number in?4 years ago
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
Python
1SantiagO7
What does it mean "lst.append"?! pleasee2 years ago
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
Python
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
Python
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
Python
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
Python
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
Python
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
Python
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
Python
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
Python
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
Python
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.
Python
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
Python
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
Python
AmirElangouri
why x * 0.1 can someone explain?3 years ago
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ⁿ.
Python
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
Python
NathanMulate
Can you do this in a while loop?2 years ago