Generate a code to reverse the given string.
hello
```python
def reverse_string(s):
    return s[::-1]

input_string = "hello"
reversed_string = reverse_string(input_string)
print(reversed_string)
```

Output: olleh
Complete the following task based on the instruction and optional input provided.### Instruction:
Generate a code to reverse the given string.

### Input:
hello

### Output:
```python
def reverse_string(s):
    return s[::-1]

input_string = "hello"
reversed_string = reverse_string(input_string)
print(reversed_string)
```

Output: olleh