Skip to content

simple project with python that show all possible ways of merging.

Notifications You must be signed in to change notification settings

ManiRazeghi/possible_range

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

this is the short introduce about class Possible.


you can use this class that figure out how much chance your target in the data
it means that you can found out : chance of AnyType in list or string

  • SUE(Structure, Usage, Error):

    • Structure:

         class Possible:
      
              def possible_int_str(self, target: int|str, data: list[int]|str) -> float:
                  return f'chance: {data.count(target) / len(data) * 100:.1f} %'
    • Usage:

         from possible import Possible
      
         object = Possible()
         print(object.possible_int_str('m', 'money')) #output: chance: 20.0 %
    • Error:

              from possible import Possible
      
              object = Possible()
              print(object.possible_int_str(23, 'money')) #output: TypeError(must be string, not int)

About

simple project with python that show all possible ways of merging.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages