question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lesson 3 Task 2: Not recognizing correct answer

See original GitHub issue

Hi,

I’m unsure if I’m just being stupid, however for String multiplication, I’ve put in the answer:

hello = "hello" ten_of_hellos = hello * 10 print(ten_of_hellos)

However, it’s telling me to use “Multiplication” and marking it wrong… Am I missing something here?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
lancelotecommented, Aug 21, 2016

Hello @CarnegieL Nope, you are right. It’s a known bug with a pending pull request (#11). You can fix it temporary by yourself - edit function test_value() inside the file ~/PycharmProjects/PythonIntroduction/lesson3/task2/tests.py (placed next to the task file):

def test_value():
    file = import_task_file()
    if hasattr(file, "ten_of_hellos") and file.ten_of_hellos == "hellohellohellohellohellohellohellohellohellohello":
        passed()
    else:
        failed("Use multiplication")

This will fix the broken test.

0reactions
veganaizecommented, Feb 6, 2017

@medvector I am talking about Pycharm EDU 3.5 (current stable). It fails to remove remnants of previous version(s) in user’s home folder (on Windows 8.1 64-bit) – Even when the two checkboxes, which remove those kinds of things, are checked. Then, when I install 3.5 (after reboot & everything), it still loads the OLD course lessons (v3.0) and my progress still remains at whatever it was (not reset).

It took me a lot of mucking to finally figure out (the obvious?) that I needed to completely remove/archive the *C:\Users<username>\PycharmProjects* folder & subfolders.

  1. These folders are located in a weird place for Windows users, as they don’t typically look in the folder named after their username (they usually look in subfolders such as “Downloads”, “Documents”, etc.).

  2. It is counter-intuitive to offer an option to delete all caches, etc. when uninstalling – but then leave those particular files laying around (without even a popup to offer to delete them).

  3. It is counter-intuitive that the new version (v3.5) doesn’t offer to “fix” (ie. overwrite) the existing corrupt lesson(s) (which should have been deleted already anyway; but since they weren’t, it’s now 3.x’s or 4.x’s job to do so).

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lesson 3 Task 2: Not recognizing correct answer · Issue #14 ...
Hi, I'm unsure if I'm just being stupid, however for String multiplication, I've put in the answer: hello = "hello" ten_of_hellos = hello...
Read more >
TAT2 Task 2 - Instructional Product - Studocu
Lesson Three This is constructivist learning experience. There is no one correct answer to any of these activities. This is a real-world problem-solving ......
Read more >
College Readiness Mathematics - Georgia Standards
S.IC.3: Recognize the purposes of and differences among sample surveys, ... No calculator should be used for Tasks 1 and 2. It is...
Read more >
module 4 test answer key
Not only do you not learn anything- but you're Module 4 Exam Answer Key - 1) ... Quarter 2: Lesson 2. one reading...
Read more >
Secondary math 2 module 3 answer key 36 - allpepper
4 answer key 4 NYS COMMON CORE MATHEMATICS CURRICULUM •Lesson 1 Answer Key 2 Homework 1. org website. SECONDARY MATH Il // MODULE...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found