Python Forum
Help with try and open 6.txt file and print as perfect or not
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with try and open 6.txt file and print as perfect or not
#11
As for the f-string question... F-strings are "formatting strings." Yes, it is yet another way to format strings in Python. The benefit of it is that is automatically picks up the value of variable named inside it. For instance:

x = "Hello!"
print(f"{x} How are you?")
will print "Hello! How are you?"
Reply


Messages In This Thread
RE: Help with try and open 6.txt file and print as perfect or not - by stullis - Jan-03-2019, 08:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Cannot get cmd to print Python file Schauster 11 516 May-16-2024, 04:40 PM
Last Post: xMaxrayx
  Open/save file on Android frohr 0 386 Jan-24-2024, 06:28 PM
Last Post: frohr
  file open "file not found error" shanoger 8 1,327 Dec-14-2023, 08:03 AM
Last Post: shanoger
  Are there errors in the code for my coin toss systems? Matlibplot is too perfect . Coolkat 0 423 Nov-13-2023, 11:54 AM
Last Post: Coolkat
  How can i combine these two functions so i only open the file once? cubangt 4 942 Aug-14-2023, 05:04 PM
Last Post: snippsat
  Start print a text after open an async task via button Nietzsche 0 750 May-15-2023, 06:52 AM
Last Post: Nietzsche
  I cannot able open a file in python ? ted 5 3,645 Feb-11-2023, 02:38 AM
Last Post: ted
  testing an open file Skaperen 7 1,465 Dec-20-2022, 02:19 AM
Last Post: Skaperen
  Saving the print result in a text file Calli 8 1,937 Sep-25-2022, 06:38 PM
Last Post: snippsat
  I get an FileNotFouerror while try to open(file,"rt"). My goal is to replace str decoded 1 1,453 May-06-2022, 01:44 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020