Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
python load a txt file and assign a variable
Jacob69
Programming language:
Python
2021-07-24 04:42:24
-1
Q:
python load a txt file and assign a variable
Museful
Code:
Python
2021-07-24 21:27:11
with open('your_text_file.txt', 'r') as f: username = f.readline() password = f.readline()
0
Tags
load
python
file
variable
sign
var
Related
python print variable and string
how to reference variable in another file python
save python output to text file
bold text variable in python
assigning a value to a character in string or text file in python
python edit string variable
python print string and variable
print variable string python
python read file to variable
python how to write a variable
python make txt file
python txt to parquet
python use variable in another file
how to print a variable in python
python save input to text file
how to write a python variable to a file
how to import a variable from another python file
Write a Python program to append text to a file and display the text.
python get output of command to variable
New to Communities?
Join the community