Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rahulhgdev opened this issue Jan 14, 2021 · 5 comments
Open
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rahulhgdev
Copy link
Owner

python

@rahulhgdev rahulhgdev added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 14, 2021
@Krish-Chauhan-Python
Copy link

`# 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

@rahulhgdev
Copy link
Owner Author

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

@96RadhikaJadhav
Copy link
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.

@rahulhgdev
Copy link
Owner Author

Yes, you can contribute 👍

@96RadhikaJadhav
Copy link
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
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants