DEV Community

Sanjay Sugumar
Sanjay Sugumar

Posted on

RESTART python 5

HI
DATE:26/05/2026
DAY:TUESDAY

*TO THERE ARE There Story Frog,Priest in seven temple,Thanaliraman,Theif Police,Two Train..

*One intersed story was ask from hari brow yestursday we have 50 feet frog story like the hari brow was ask there question

total_feet = 50
day up down
1 2 1.25
total_feet = total_feet - up + down [50 - 2 + 1.25]

2 3 1.5
total_feet = total_feet - up + down [49.25 - 3 + 1.5]

3 2 1.25
total_feet = total_feet - up + down [47.75 - 3 + 1.5]`

program:

`feet = 50
up = 3
down = 1.5
day = 0
while feet>0:
if day % 2 == 0:
up = 2
down = 1.25
feet = feet - up + down
day = day + 1
print(day)


*prist was going to bath in pond and then do going seven temples the last temple the prist was take to home 1 flower and half of flower was prist was take to temple total how many flowers in bag of prist ..
flowers = 1
temples_covered = 7
temples_covered = temples_covered - 1
flowers = flowers * 2 #2


*this is thanaliraman story go inside the castle ......

beats = 512
security = 0

beats = beats/2 #256
security = security + 1 #1


Program:


beats = 512
security = 0
while beats > 0:
    beats = beats // 2         #256
    security = security + 1 #1

print(security)
Enter fullscreen mode Exit fullscreen mode

print(8/3)
print(8//3)``

// --> floor division


THERE LAST TWO STORY:

Train Story -T1, T2

Thief, Police

Top comments (0)