GithubHelp home page GithubHelp logo

ismail_documentation's Introduction

Ismail_Documentation

ismail_documentation's People

Contributors

ibuliyaminu avatar

Watchers

 avatar

ismail_documentation's Issues

how-to-guides.md

This part of the project documentation focuses on a
problem-oriented approach. You'll tackle common
tasks that you might have, with the help of the code
provided in this project.

How To Add Three Numbers (my_adder)?

You have three numbers and you need to add them together.
You're in luck!

Download the code below:
::: functions.my_adder

Inside of my_adder.py you can define a python function
my_adder() that takes three parameters 'a', 'b', and 'c'.
You can assign values to find the sum of the three numbers. And the result is stored in the variable "out".
You are now able to add three numbers.

How To Change the status of the thermostat?

This python function ("my_thermo_stat") takes two parameters: 'temp' (current temperature) and 'desired_temp' (desired temperature).
It determines the status of a thermostat based on the two parameters.

Download the code below:
::: functions.my_thermo_stat

Inside of my_thermo_stat.py you can define a python function
my_thermo_stat() that takes two parameters 'a', 'b', and 'c'.
The function uses conditional statements (if, elif, else) to determine the thermostat status based on the temperature difference between the current temperature (temp) and the desired temperature (desired_temp).

If the current temperature is more than 5 degrees below the desired temperature, it sets the status to "Heat".
If the current temperature is more than 5 degrees above the desired temperature, it sets the status to "AC".
If the temperature difference is within 5 degrees, it sets the status to "off".
You are now able to determine the status of thermostat.

How To Check If a String has a Digit?

This python function ("have_digits") takes a single parameter ('s') that is expected to be a string.
You can download the code below:
::: functions.have_digits

The 'have_digits' function checks if a given string contains any digits.
A for loop is used to iterate through each character in the input string.
The isdigit() method is used to check if a character is a digit.
The variable out is used to indicate whether digits were found (1) or not (0) in the string.
The function returns 1 if digits were found and 0 if not.
This code provides a simple utility to determine if a string contains any digits. If it does, the function returns 1; otherwise, it returns 0.

How To Calculate The Area Of a Rectangle?

This function 'area_of_rectangle' calculates the area of rectangle based on the provided width and height.

You can download the code below:
::: functions.area_of_rectangle

The 'area_of_rectangle' function calculates the area of a rectangle using the provided 'width' and 'height'.
The variables width and height are set to specific values within the functions. You may define your own reasonable values of the width and height.

How To Calculate Perimeter Of a Rectangle?

This function 'perimeter_of_rectangle' calculates the perimeter of rectangle based on the provided width and height.

You can download the code below:
::: functions.perimeter_of_rectangle

The 'perimeter_of_rectangle' function calculates the perimeter of a rectangle using the provided 'width' and 'height'.
The variables width and height are set to specific values within the functions. You may define your own reasonable values of the width and height.

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.