Skip to content

Instantly share code, notes, and snippets.

@isaiah7p
Created August 3, 2021 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaiah7p/0cdd91957aba0bc2bea2ba41b1004bd6 to your computer and use it in GitHub Desktop.
Save isaiah7p/0cdd91957aba0bc2bea2ba41b1004bd6 to your computer and use it in GitHub Desktop.
Python Assignments
Ex1 : Phone number Validation
Rule 1) 10 digit number
Rule 2) First number should be between 6-9
-----------------------------------------------------------------------------
Ex2 : Remove Zeros from the stream of numbers
3123213100031231230231321300354350077700
-----------------------------------------------------------------------------
Ex3 : Fibinocci series Up to a given number
-----------------------------------------------------------------------------
Ex4 :
-----------------------------------------------------------------------------
Input String
~00D0340;0;0;00000;0069;000;0273;;027;100
Labeling :
"runtime" : 69 , "batvoltage":27.3,"upstemp":27,"batpercentage":100
Expected OutPut :
{
"runtime" : 69,
"batvoltage": 27.3,
"upstemp": 27,
"batpercentage": 100
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment