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

Activity
- addedhelp wantedExtra attention is neededExtra attention is neededgood first issueGood for newcomersGood for newcomers
on Jan 14, 2021 `# 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 = 2always 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`
if you want to contribute programs related to these things you can fork and contribute
@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.
Yes, you can contribute 👍
@rahulhgdev Please check my PR #5 .
