#!/usr/bin/env python3
"""A dummy script which randomly guesses weather conditions."""

from random import random
from time import sleep


def main():
    print('Guessing Weather Conditions')
    wind_speed = random() * 10
    wind_direction = random() * 360

    print('Writing Out Wind Data')
    with open('wind.csv', 'w+') as data_file:
        data_file.write('%f, %f' % (wind_speed, wind_direction))

    sleep(3)

if __name__ == '__main__':
    main()
