Giter VIP home page Giter VIP logo

python_code's Introduction

python_codeNmae

#Name:P.Sai Bhargav #mailid=[email protected] #collegeName=AVN institiute of engineering and technology #passout=2022 #phone no:7981246429

class Planets: def init(self,Planet, Atmospheric_gasses,Moons,Rings): self.Planet=Planet self.Atmospheric_gasses=Atmospheric_gasses self.Moons=Moons self.Rings=Rings def Count(self): no_of_moons=0 if self.Moons>0: no_of_moons+=Moons print(no_of_moons)
def no_gases(self): all_gases="" length=len(self.Atmospheric_gasses) if length>0: all_gases+=self.Atmospheric_gasses print(all_gases)
def default_test(): first_palnet= Planets(Planet="Mercury", Atmospheric_gasses="",Moons=0,Rings="NO" ) print(first_palnet.Count()) print(first_palnet.no_gases())

python_code's People

Contributors

saibhargav145 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.