Q:

General structure in Python

I am very new to object oriented languages (programming in VBA for years) and having a hard time switching into it (no native-english speaker .. sorry for upcoming mistakes)
Here is my very first program where i want to test different things. Running my VSC Debugger i got an error in line 7(file: 'file:///c%3A/python/test.py' severity: 'Fehler' message: 'E0001:expected an indented block (, line 7)') . But i think it´s a more general problem. Is the general structure OK? Importing first, then defining 2 Functions? 
Thanks in advance for helping me out! 
import ctypes
import random

def main():
    rndNumber = random.randint(0, 10)
    MBoxString = "is this a good Number? "+ rndNumber
    Mbox("Number", MBoxString, 1)
    varContinue = int(input("1 for yes & 2 for no! "))
    while varContinue == 2:
        rndNumber = random.randint(0, 10)
        print("Is this a better one?", rndNumber)
        varContinue = int(input("1 for yes & 2 for no! "))

def Mbox(title, text, style):
    return ctypes.windll.user32.MessageBoxW(0, text, title, style)

A:

The below code worked:
Changes made :
MBoxString = "is this a good Number? "+ str(rndNumber)

Code :
import ctypes
import random

def main():
    rndNumber = random.randint(0, 10)
    MBoxString = "is this a good Number? "+ str(rndNumber)
    Mbox("Number", MBoxString, 1)
    varContinue = int(input("1 for yes & 2 for no! "))
    while varContinue == 2:
        rndNumber = random.randint(0, 10)
        print("Is this a better one?", rndNumber)
        varContinue = int(input("1 for yes & 2 for no! "))

def Mbox(title, text, style):
    return ctypes.windll.user32.MessageBoxW(0, text, title, style)

main()

