def fibonacci_at_pos(n):
    """return fibonacci number for given position"""
    curr_pos = 0
    prev_num, curr_num = 0, 1

    while curr_pos < n:
        curr_pos += 1
        prev_num, curr_num = curr_num, prev_num + curr_num
    
    return prev_num