Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Article: Python Hex Function #1033

Merged
3 commits merged into from
May 26, 2016
Merged

Article: Python Hex Function #1033

3 commits merged into from
May 26, 2016

Conversation

nj4710
Copy link
Contributor

@nj4710 nj4710 commented May 25, 2016

For issue #819

@ghost ghost self-assigned this May 25, 2016
@ghost ghost added QA Python labels May 25, 2016
@ghost ghost added this to the June Summit milestone May 25, 2016

## Argument

This function takes one argument `x` that should be of integer type.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

argument x that argument, x, that

@ghost ghost changed the title Create Python-Function-Hex.md Article: Python Hex Function May 26, 2016
@ghost
Copy link

ghost commented May 26, 2016

@alayek Just need a quick QA from you 😆

## Example

```python
print hex(16) # prints 0x10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting this on REPL

Traceback (most recent call last):
  File "python", line 1
    print hex(16)
            ^
SyntaxError: invalid syntax

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are using Python 2 print syntax, use print()

@Rafase282
Copy link
Member

This is the main article, which refers to other articles on Python functions.

Please edit this file as well and include yours, in alphabetical order.

@nj4710
Copy link
Contributor Author

nj4710 commented May 26, 2016

@Rafase282 done. any more changes?

@alayek
Copy link
Member

alayek commented May 26, 2016

LGTM 👍

Let's :shipit: 📦

@Rafase282
Copy link
Member

@nj4710 you haven't add it yet.

@nj4710
Copy link
Contributor Author

nj4710 commented May 26, 2016

I have created a pull request

@Rafase282
Copy link
Member

LGTM

@ghost ghost merged commit 28e970f into freeCodeCamp:master May 26, 2016
@BerkeleyTrue BerkeleyTrue removed the QA label May 26, 2016
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants