HomePython programmingprinting odd numbers Leave a Comment / By akyadavi / September 22, 2023 #printing odd numbers from 1 to n. a=int(input(“Enter last number:”)) for k in range(1,a+1): print(k+2,end=” “)
printing 1 to 100 in python Python programming / July 7, 2023 / Leave a Comment #printing 1 to 100 : for k in range (1,101): print(k) To print numbers in a row. Use print(k,end=” ,”)
Strings Slices in Python Python programming / July 9, 2023 / Leave a Comment Strings are sliced using a range of indices. string1[a : b] where a and b are integers and legal indices ,will return a slice of…