Sie sind auf Seite 1von 7

8:23 PM: Ex1

-----------
float(10)
o/p
10.0
Ex2
----------
a=20
float(a)
o/p
20.0
Ex3
----------
float("10")
o/p
10.0
Ex4
----------------
float(True)
o/p
1.0
Ex5
--------------
float(False)
o/p
0.0
-----------------------------------------
3)
str()
this method will convert given value into
string data type..
For example
----------------------
Ex1
-----------
>>> str(10)
o/p
----------------
'10'
Ex2
--------------
>>> str(10.5)
o/p
---------------
'10.5'
Ex3
--------------
>>> str(True)
o/p
-----------
'True'
ex4
------------------
>>> str(False)
o/p
------------
'False'
>>>

4)bool()
-----------------------------------------------------
->
this method wil convert the given value into
bool..
Examples
-----------------
Ex1
-------------
>>> bool(10)
o/p
----------
True
Ex2
-----------
>>> bool(10.5)
o/p
--------------
True
Ex3
-----------
>>> bool("rama")
o/p
------------
True
Ex4:
---------------
>>> bool(True)
o/p
-----------
True
>>>

input()
->this method will accept input
from the user by displyaing user fiendly
message till user press enter key..
once user pressed enter key this method will
return that accepted value as string..type..

task1
write a python program to accept 2 numbers
and perform sub and display sub result.

task2
write a python program to accept 2 numbers
and perform miltiplication and display mul result.

task3:
write a python program to accept 2 numbers
and perform div and display div result.

Q: yes
Q: completed

Q: integer

Q: float()

Q: tracing completed

Q: i am doing with u

Q: yes

Q: me

Q: yes

Q: recorded

Q: clear

RN Reddy IT School (to All - Entire Audience):

8:50 PM: task1:


write a python program to accept 3 subject marks
calaculate total marks and avgmarks
and display total marks and avg marks..\
task2:
---------------------------
write a python progrm to accept 2 numbers and
perform addition and subtraction and display
addition and subtraction result
task3
-----------------------------
write a python program to accept 2 numbers and perform
division and multiplication and display division and
mutliplication result
task4
----------------------------
write a python program to accept 2 numbers and perform
addition and sub and
division and multiplication and display addition and
sub abd division and
mutliplication result
-------------------------------------------
send to my mail id
----------------------------
rnreddy.onlinepython@gmail.com
-------------------------------------
step1 design on paper send photo
step2:program on paper send photo
progrm in code window send photo
step3:tracing on paper send photo..
-------------end--------------------

task 1: Write a Python program to accept 3 subject marks


calculate total marks and average marks.

task 2 : Addition and subtraction

task 3: Display division and multiplication

task 4 : addition, subtraction, multiplication, divisi

9:07 PM: task 5


---------------------------------
write a python program to accept
2 product cost i.e p1,p2
calaculate totbill on totbill
calculate 10% discount..
and 20 % tax
display total bill and discount..and tax
----------------------------------------------
task6
--------------------------
write a python program to accept
2 product cost i.e p1,p2
on p1 10 % discount
on p2 20% discount
calaculate totbill on totbill
.on total bill
and 30 % tax
display total bill and total discount..and tax

8:36 PM: i=int(input("Enter i value:"))


j=int(input("Enter j value:"))
if i>j:
print("i is greater than j")
elif j>i:
print("j is greater than i")
else:
print("i is equals to j")
Q: if we r evaluating one condition we will go for simple if

Q: if we r evaluating more than one conditon we will go for if else

Q: if we r evaluating more than 2 we will go for if elif

RN Reddy IT School (to All - Entire Audience):

8:54 PM: when we will go for simple if?


----------------------------------
Ans:-
-> 1 option
when ever we want to excute single option
based on condtion..then we will go for simple
if
when we will go for if else?
-----------
Ans:-
option1
option 2
when ever we have 2 options if we want to
execute one option based on condtion
we will go for if else
when we will go for if elif?
------------------------------
Ans:-
option1
option2
option3
nn

when ever we have more than 2 options


if we want to execute one optiob based on
condtion we will go for if elif..
--------------------------------------------

Q: for loop, while loop,for loop with else,while loop with else

Q: for <variable name> in range(<start range,ending range>)

RN Reddy IT School (to All - Entire Audience):

8:43 PM: - Core PYTHON @8.15 PM on Apr 24, 2020


Login @8:15PM IST
sessions start at8.30pm IST to 9.30pm IST
--------------------------------
https://attendee.gotowebinar.com/register
/2587044613964668432

After registering, you will


receive a confirmation email
containing information about
joining the webinar.

Q: for loop, while loop,for loop with else,while loop with else

Q: for <variable name> in range(<start range,ending range>)

RN Reddy IT School (to All - Entire Audience):

8:43 PM: - Core PYTHON @8.15 PM on Apr 24, 2020


Login @8:15PM IST
sessions start at8.30pm IST to 9.30pm IST
--------------------------------
https://attendee.gotowebinar.com/register
/2587044613964668432

After registering, you will


receive a confirmation email
containing information about
joining the webinar.

RN Reddy IT School (to All - Entire Audience):

8:44 PM: Core PYTHON @8.15 PM on Apr 24, 2020


Login @8:15PM IST
sessions start at8.30pm IST to 9.30pm IST
--------------------------------
https://attendee.gotowebinar.com/register
/2587044613964668432

After registering, you will


receive a confirmation email
containing information about
joining the webinar.

9:21 PM: task1


----------
o/p
-------------------
1 2 3 4 5
task2
-o/p
--------------
1
2
3
4
5
task3
------------------
5
4
3
2
1
task4
---------------------
5 4 3 2 1

We�re having problems connecting to the webinar. Attempting to reconnect now.


Please check your internet connection.
Waiting to view RN Reddy IT School's screen.

Chat
RN Reddy IT School (Organizer, Presenter)to Everyone
o/p
1 2 3 4 5 6 7 8 9 10

display the numbers given range.. o/p


Enter ur range:21 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 3)op
7 8 9 10 4 5 6 2 3 1

o/p
10 9 8 7 6 5 4 3 2 1

public 8:34 PM

Das könnte Ihnen auch gefallen