Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

f string in python

# Ques.1
num = int(input("Enter your number: "))

for i in range(1, 11):
    # print(str(num) + " × " + str(i) + " = " + str(i*num))
    # you can't add variables
    
    print(f"{num} × {i} = {num*i}")
    # you can add variables
Source by localhost #
 
PREVIOUS NEXT
Tagged: #string #python
ADD COMMENT
Topic
Name
9+9 =