0% found this document useful (0 votes)
3 views1 page

Python 1

python

Uploaded by

Sachin
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Python 1

python

Uploaded by

Sachin
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

identation is used.

no curly braces

def-to initialse a function

print %d 'hello'%(5)-5 hello

raw_input()
-will take the input as string

int(raw_input())
-integer

st='ab'
len(st)
2

st[0]='c'
-we cannot change the value in an index

strip()
a='abcd '
[Link]()
-removes the empty space ina string

split()
[Link]('b')
['a','cd']
-with b as delimiter

a='1 3'
[Link](' ')
-['1','3']

#-single line comments

'''-multi line comments

st='abs'
[Link]()-'ABS'
[Link]()-'abs'

[Link]()
[Link]()
[Link]()

You might also like