Comments (5)
Thanks: I'm working on correcting this now.
from dress-for-the-weather.
The easiest fix is to use double quotes! Here's a round-up of some options for dealing with strings containing quotes:
s = 'Hello I'm Ben' # broken
s = "Hello I'm Ben" # works
s = 'Hello I\'m Ben' # also works but unnecessary (backslash escapes quote character)
s = "Hello I'm Ben and I say "hello"" # broken
s = "Hello I'm Ben and I say \"hello\"" # works, backslashes more necessary
s = 'Hello I\'m Ben and I say "hello"' # works, alternative to above
from dress-for-the-weather.
Thanks Ben! I'm just correcting it to "you are" from "you're" as it's a very straightforward fix, but I'll bear this in mind for the future.
from dress-for-the-weather.
@bennuttall, @MarcScott Following on from this, I was checking the rest of the code for apostrophes, and I noticed there might be some issues with the "get clothes" section of the code: some of the print statements have single inverted commas and some have double. I assume I need to change these all to double, but wanted to check before jumping in. I can also add escape characters if necessary.
from dress-for-the-weather.
I'll do a quick code review
from dress-for-the-weather.
Related Issues (20)
- Rewrite resource using Scratch weather api HOT 1
- Data format HOT 4
- i have the same issue as above. HOT 1
- en/solutions missing
- Unable to process Getting the city or town content
- Unable to process Getting the city or town content
- Unable to process Getting the city or town content
- Unable to process Getting the location content
- Unable to process Getting the location content
- Unable to process Getting the date content
- Broken meta.yml
- Maker day feedback HOT 1
- Maker day feedback #2 HOT 1
- 401 Open weather api key HOT 1
- API no longer free (Apr 2020) HOT 3
- Change in OpenWeatherMaps ? (Sept 2020) HOT 3
- Inconsistent indentation in get_city_id() HOT 1
- get_readable_forecast HOT 3
- Getting a 5-day forecast with Python HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dress-for-the-weather.