Skip to content

add more programs to help beginners, feel free to fork and contribute #1

Description

@rahulhgdev

python

Activity

  1. krish-chauhan-1108 commented on Jan 14, 2021

    @krish-chauhan-1108

    `# use hash-tag to write comments that are not counted as code

    use equal to sign to assign value to variables

    integer = 1

    integer variable types are numbers without any decimal points

    float = 1.0

    float variable types are numbers with decimal points

    string = "1"

    anything can be a string if put in quotes

    list = [1,2,"1",2.2]

    list can store many vairables even other lists they are always enclosed in square brackets

    tupple = (1,2,3)

    they are like lists but they are enclosed in round brackets

    print ( " Type Anything In Double Quotes " , " Use comma to print more than one argument " , " Use \n to go to the next line " )

    print ( " print automatically goes to the next line " , " Python is case sensitive so always remember the case ")

    print("The extra spaces are not necessary for the code " , integer , float , string , list , tupple , "Never put variables in quotes")

    print("There are ")

    in an if statement always use defined variables else it will give an error

    there are no brackets in python

    if integer == 1:

    integer = 2 
    

    always put 4 spaces after an if , for , while statement

    learn the operators from the attached screenshot

    use input to take input

    a = input('Input only accepts 1 argument : ')

    #the default variable type of inpu is string

    use int() to convert to integer

    use float() to convert to float

    use list() to convert to list

    use str() to convert to string`

    image

  2. rahulhgdev commented on Jan 14, 2021

    @rahulhgdev
    OwnerAuthor

    if you want to contribute programs related to these things you can fork and contribute

  3. 96RadhikaJadhav commented on Jan 16, 2021

    @96RadhikaJadhav
    Contributor

    @rahulhgdev I can add python programs such as factorial of a number, program for simple interest, compound interest, armstrong number, area of circle, prime number.

  4. rahulhgdev commented on Jan 16, 2021

    @rahulhgdev
    OwnerAuthor

    Yes, you can contribute 👍

  5. 96RadhikaJadhav commented on Jan 19, 2021

    @96RadhikaJadhav
    Contributor

    @rahulhgdev Please check my PR #5 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions