"async def" invalid syntax

i was mading my discord bot but when i ran the code it sent me syntax error on
“async def com2(ctx):” stroke. error in marked word

import discord
from discord.ext import commands
from discord.ext.commands import Bot

Bot = commands.Bot(command_prefix='')

@Bot.command(pass_context= True)
async def com(ctx):
    await ctx.send('ans')

@Bot.command(pass_context= True)
async def com2(ctx):
    await ctx.send('ans2')

Bot.run('token')

What version of Python are you running?

async def is only legal starting in Python 3.5 so if you are running
something older you need to upgrade to use that syntax.

If that is not the problem, then please copy and paste the exact syntax
error you are getting so we can read what it says.

By the way, your code also misspells “discord” as “discrod”, so you will
get import errors on those lines.

Thanks, Steven. But how can I “upgrade” my python?