# Name: TableToGeodatabase_Example2.py
# Description: Use TableToDBASE to copy tables to geodatabase format
# Import system modules
import arcpy
# Set environment settings
arcpy.env.workspace = "C:/data"
# Make list of all tables in workspace
tables = arcpy.ListTables()
# list of tables should be similar to this: ["accident.dbf", "vegtable.dbf"]
# Set local variables
outLocation = "C:/output/output.gdb"
# Execute TableToGeodatabase
print("Importing tables to gdb: " + outLocation)
arcpy.TableToGeodatabase_conversion(tables, outLocation)