Python Codesss @pythoncodessss123 Channel on Telegram

Python Codesss

@pythoncodessss123


Python Codesss (English)

Are you a coding enthusiast looking to hone your Python skills? Look no further than Python Codesss! Our Telegram channel, with the username @pythoncodessss123, is the ultimate destination for Python programmers of all levels. Whether you're a beginner just starting out or an experienced developer looking to expand your knowledge, Python Codesss has got you covered. Our channel offers daily coding challenges, tips and tricks, tutorials, and resources to help you master Python programming. Join our community of like-minded individuals who are passionate about coding and eager to learn and grow together. Stay up to date with the latest trends and developments in the world of Python programming. Don't miss out on this opportunity to take your coding skills to the next level. Join Python Codesss today and unlock your full coding potential!

Python Codesss

08 Aug, 13:21


85. Write a program to read the text from a given file, “veer.txt”



f = open("veer.txt", "r")

text = f.read()

print(text)

f.close()

Python Codesss

13 Dec, 04:50


84. write a program to print multiplication table using function

def mult_table(n):
for i in range(1,11):
print(n*i)

mult_table(2)

Python Codesss

11 Dec, 19:07


83 .inch to centimeter using function

def ctr(a):
return 2.54*a



print(ctr(10)) Shell :25.4

Python Codesss

11 Dec, 18:04


82 .write a recursive function to calculate the sum of n natural numbers


def r_sumc(n):
if(n==0):
return 0

else:
return n+ r_sumc(n-1)

print(r_sumc(100))


Shell : 5050

Python Codesss

11 Dec, 16:10


81. write a program using function to convert celsius to fahrenheit

def ctf(c):
return (9*c/5)+32

print("20 degree celsius in fahrenheit ",ctf(20))

Python Codesss

11 Dec, 13:41


80. find greatest number using function

def maximum(n1,n2,n3):
if(n1>n2):
if(n1>n3):
print( n1, +"is greatest number")
else:
print(n3,+"is graetest number")

else:
if(n2>n3):
print( n2, "is greatest number")
else:
print(n3, "is graetest number")



a= maximum(23,45,67)

Python Codesss

11 Dec, 12:58


79. factorial using recursion

def recur(n):
if n==0 or n==1:
return 1
else:
return n * recur(n-1)

print(recur(5))

Python Codesss

11 Dec, 11:40


78. Write a program to greet new users

def greet(A):
print("Good Morning ,"+ A)

a = "Krishnaurti"
greet(a)

b= "Krishna"
greet(b)

Python Codesss

11 Dec, 11:24


77 . write a function to calculate the percentage

def percent(marks):
p = (marks[0]+marks[1]+marks[2])/3
return p

mark = [67,62,49]
p = percent(mark)

print(p)

Python Codesss

10 Dec, 14:03


76. write a program to print multiplication table of n using while loop in reversed order

i=10
while(i>=1):
print(2*i)
i=i-1

Python Codesss

10 Dec, 13:57


75. write a program to print multiplication table of n using for loop in reversed order

for i in range (10,0, -1):
print(2*i)

Python Codesss

10 Dec, 13:37


74. Write a program to print the following star pattern:
*

*

**** for n = 4



for i in range (5):
print("*" *i)

Python Codesss

10 Dec, 13:09


73. write a program to calculate factorial of a number




a= int(input("Enter the number"))

factorial =1

for i in range(1,a+1):
factorial = factorial*i

print(factorial)

Python Codesss

08 Dec, 13:52


72. write a program to print multiplication table using for loop
i=1

while(i<11):

print(2*i)
i=i+1

Python Codesss

08 Dec, 13:22


71. write a program to great all the names stored in a list which starts from K

a =["Kabir","Meera","Tulsidaas","buddha","Krishnamurti"]

for name in a:
if name.startswith("K"):
print("Namaste,"+ name)

Python Codesss

08 Dec, 12:01


70. Write a program to print multiplication table off a given number using for loop

a= int(input("Enter the number :"))

for a in range(1,11):
print(a*2)

Python Codesss

08 Dec, 10:29


69. continue statement use in program l= [1,2,3,4]
for item in l:
pass
print("Hey") Shell Hey

Python Codesss

08 Dec, 10:16


68 . continue statement use in program


for i in range(0,11):

if i==5:
continue
print(i)

Shell :0
1
2
3
4
6
7
8
9
10

Python Codesss

08 Dec, 09:56


67. Break statement use in program


for i in range(0,101):
print(i)
if i==5:
break Shell :0
1
2
3
4
5

Python Codesss

08 Dec, 09:40


66. for loop with else


for i in range(0,101,2):
print(i)

else:
print("Done")