Sunday, 22 January 2023

Python - File Operations

#FILE READ

 
welcome1 Python is a great language. Yeah its great!! Name of the file: sample.txt Closed or not : True Opening mode : r

 

# FILE WRITE
#!/usr/bin/python
# Open a file


fo = open("sample.txt", "w")
fo.write( "welcome1 Python is a great language.\nYeah its great!!\n")


# Close opend file

fo.close() 

DBT - Models

Models are where your developers spend most of their time within a dbt environment. Models are primarily written as a select statement and ...