Dcoder icon

The Beta Test Initiation @ Dcoder

By Lochard | As a newbie programmer | 7 May 2023


Problem: Dcoder Team is working on an exciting new update in the app, but before releasing it to the public, our team has decided to test the app out on small percentage of users. This is known as the Beta Test. For a user to be eligible for a Beta Test, his android version must be greater or equal to version V. You will be given a string X denoting the android version of user. Tell us whether he is eligible for the Beta Test or not by printing "Yes" or "No", without the double quotes.

Input: Two strings, V and X.

V : minimum android version required for Beta Test

X : user's android version

Output: "Yes" or "No"

Constraints: 1 ≤ V.length, X.length ≤ 6

(The versions would have no more than 2 integer parts, i.e, only one '.' )

Sample Input: 3.02 4.10

Sample Output: 

Yes

from re import split as sp
v, x = map(float, input().split())
print('Yes' if x >= v else 'No')

How do you rate this article?

3


Lochard
Lochard

20240228 Arrived in the UK for about 2 week. All my fears persist. Some are even getting worse. https://github.com/locharp/asylum_diary/


As a newbie programmer
As a newbie programmer

Sharing entry level codes. My snippets on GitHub https://github.com/locharp/code-snippets

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.