Contenido del Curso
Test UI Features
Test UI Features
1. Buttons
+ (deprecated) Hint and Solution Single Block+ (deprecated) TypeScript Hint/Solution+ (deprecated) C# Hint/Solution+ (deprecated) JavaScript Hint/Solution+ (deprecated) Java Hint/Solution+ (deprecated) GO Lang Hint/Solution+ (deprecated) Python Hint/Solution+ (deprecated) Java Hint/Solution with Copyable & Highlighted Code+ (deprecated) Scala Hint/Solution with Copyable & Highlighted Code+ (deprecated) Hint/Video Tutorial+ (deprecated) Hint/Solution/Video Tutorial+ new Hint and Solution Single Block Buttons+ new Hint/Solution Buttons+ new Hint/Solution/Video Tutorial Buttons+ Code Description Button+ Download File in the TXT format+ Download Course Summary
2. ContentDev Tools
3. Video Tools
6. Other
+ (deprecated) IDE TestingWindows / Apple / Linux InstructionsNested List Testing+ (deprecated) CSS Example Practice Test+ (deprecated) Spinning animOleh S testsItem FeedbacksNN Cat/DogEncryption BlockNN Cat/Dog V2Text with Color LegendSuperscript/SubscriptDanyas playgroundTemporary Hint/Video TutorialTemporary Hint/Solution/Video Tutorial
7. Text Boxes
NoteJokeStudy MorePrompt Input - OutputCopyable Text BoxQuote Text Box+ Code Block - Highlighted & Copyable SQL+ Code Block - Highlighted & Copyable Python+ Code Block - Highlighted & Copyable JavaScript+ Code Block - Highlighted & Copyable Java+ Code Block - Highlighted & Copyable Dart+ Code Block - Highlighted & Copyable C+++ Code Block - Highlighted & Copyable C+ Code Block - Highlighted & Copyable C#File name header Prerequisites Box With LinksDefinition Text BlockAnimated border
+ RegExp Creation
import re # Enter expected input correct_text = r'''print('Example string 1') print('Example string 2') ''' # Enter expected output output = r'''Example string 1 Example string 2 ''' # Set up pattern to search for check_pattern = r'''print(|'Example string 1'|)''' # Set up space replacer with escape character space_replacer = '\|' # RegExp creation reg = '^(((?!' + re.escape(check_pattern).replace(space_replacer, '\ *') + ').)*)$' # Resulting RegExp print('RegExp:') print(reg) # If RegExp found in Input if re.findall(reg, correct_text, re.S) == []: print('--- Input DONE! ---') # If RegExp found in Output if re.findall(reg, output, re.S) == []: print('--- Output DONE! ---')
Set up:
correct_text
- what should be in the user's input field for the correct result.output
- what should be in the user's output field for the correct result.check_pattern
- string that you want to check for. Place aspace_replacer
in all places where the user might enter an indefinite number of spaces.
If RegExp found your pattern in the user's input, you will receive:
--- Input DONE! ---
If the pattern is found in the user's output:
--- Output DONE! ---
¿Todo estuvo claro?
Sección 2. Capítulo 3