0% found this document useful (0 votes)
3 views2 pages

Python String Functions and Basics

Uploaded by

Harshad Mehta
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 views2 pages

Python String Functions and Basics

Uploaded by

Harshad Mehta
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

len() = how much carachter in a string

find() = where the string started


replace(,)= replace a string with another string
in = if the string contains in the variable or not

+ =addition
_ =subtraction
*= multiplication
**= power ex: 2**3 means 2 to the power 3
/=division with float number if there any
//= only integer
%= modulas means vagshesh
round() for round figure like

[Link] for math module

[Link] (W3 School tutorial)

if
elif
else
and
or
not
len
while
for
range
D586145099

f formatted sting bujhi na..


not operator bujhi nai
while true bujhte hobe
1.7 minute

bari bhai watch sophos account

ask me

if ask me = help hoy then type abcd

[Link]
utm_medium=organic_social&utm_source=linkedin&utm_campaign=en_brand&utm_content=ryo
&team=social

IL = instuction list
Lexis= dictionary
syntax= rule or protocol. ex: i am python is ok but i python a is syntax errot
semantics= rule for make a sensible sentence .ex: i ate rice is ok but rice ate me
is a semantic error

A program written in a high-level programming language is called a source code


the file containing the source code is called the source file.

Compiler: transalation process


interpretor: who translate

PYPL PopularitY of Programming Language

the traceback (which is the path that the code traverses through different parts of
the program – you can ignore it for now, as it is empty in such a simple code)

the location of the error (the name of the file containing the error, line number
and module name); note: the number may be misleading,
as Python usually shows the place where it first notices the effects of the error,
not necessarily the error itself;

PB071i

You might also like