F-Strings & String Formatting In Python | Python Tutorials For Absolute Beginners In Hindi #39

preview_player
Показать описание


Best Hindi Videos For Learning Programming:

Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

Greeting= "Thank you"
Person= "HARRY BHAI"
a= f"{Greeting} {Person} for this tutorial"
print (a)

khadimhusen
Автор

# harry bhai I this is a small practical use of f strings.
print("Now enter your login info...")
name = input("Enter your name here\n")
Mobile_number = input("Enter your mobile number\n")
State = input("Enter the state in which you live\n")
father_name = input("Enter your Father's name\n")
data = f"Your login info is\nName-{name}\nMobile name-{father_name}"
print(data)
with open("Login Info.txt", "a") as a:
a.write(data + "\n")
print("Login Successful..")

anantluthra
Автор

Legends Watching This Playlist Before Coding Round 😱😂🔥🔥🔥

Aspirantspoint
Автор

It Is very very comfortable to watch your videos and practice the quizzes and excercises regularly because of your hard work and continuity and dedication for your work and explanation 😎

HariomSingh-eifb
Автор

Watching this playlist in 2022 Thanks To Harry Sir 💗💗💗💗

abhisheksaha
Автор

Love the way you teach
Your videos are interesting, meaningful and short.

shreyanshmishra
Автор

import time

def timeFunction():
"""This Function just tells the current time and time taken by the CPU to execute the program """
print(timeFunction.__doc__)
template = 'Time: {}, CPU Clock : {}'

print(template.format(time.ctime(), time.process_time()))

for i in range(3, 0, -1):
print('> Wait for', i, 'sec.')
time.sleep(i)
print(template.format(time.ctime(), time.process_time()))


timeFunction()
#Harshit

Harshit-igsv
Автор

Thank You ! I made a hard copy receipt printing with Python from your kirana store and f strings and some others

devshah
Автор

thank you for teaching
us love you
because of u i left gaming and doing coding

aarushgamer
Автор

import time
n=time.process_time()
print(f"Time required to execute/run this program:-{n} ")

namanshiv
Автор

finally we can use f string for projects

rolexxxplays
Автор

import time
value = time.process_time()
a=f"this is a fstring {value}"
print(a)

akanshasrivastava
Автор

F string badiya hai bhai...

import time
second=time.time()
value = time.ctime(second)
a=f"this is a fstring {[value]}"
print(a)

rishabhgupta
Автор

thank = "Harry"
you = "you are best teacher"
a = f"Thanks, {thank} {you}"
print(a)

mradkgaming
Автор

Good explanation Harry bhai...always ur fan from beginning ...
💓

sudarshanmhaisdhune
Автор

what to "blank string " sir..

anandmohan
Автор

what kind of python projects on freelancing

neerajchandhiok
Автор

Sir, How to use newline or endl in f-string????

jerrycoder