Back to glossary

Hello World (Vyper Code Example)

Table of Contents

pragma specifies the compiler version of Vyper.

# pragma version ^0.4.0

# Create a string variable that can store maximum 100 characters
greet: public(String[100])

@deploy
def __init__():
    self.greet = "Hello World"

Related Terms

No items found.